How can you do an sbt release from jenkins using a jenkinsfile with non-interactive sbt-release syntax?
For some reason this does not work. Locally works
sbt "release with-defaults"
In Jenkins does not work
sh "sbt \\'release with-defaults\\'"
Output in jenkins shows
[0m[[31merror[0m] [0mNo valid parser available.[0m
[0m[[31merror[0m] [0m"release "[0m
[0m[[31merror[0m] [0m ^[0m
I believe the quotes around "release with-defaults"
are required. It seems like sbt is executing first, going into the sbt console, then trying to execute release...
next which then it shows the sbt error "no valid parser available"