-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
-
87.v455263c57692
There is support in the tools element of the pipeline declarative DSL for both gradle and Maven, however there appears to be presently no equivalent support for Scala's SBT.
[JENKINS-42475] Support SBT in declarative pipeline builds
Component/s | New: sbt-plugin [ 15775 ] |
Component/s | Original: pipeline-model-definition-plugin [ 21706 ] | |
Assignee | Original: Andrew Bayer [ abayer ] | New: uzilan [ uzilan ] |
This would be a great improvement to have. At the moment, if you're using the pipeline DSL for an SBT project, the options that I'm aware of are:
def SBT = 'java -Dsbt.log.noformat=true -jar `find ~/tools/ -executable -type f -name "sbt-launch.jar"`
sh "${SBT} compile test"
In my view this lack of compatibility between Jenkins fundamentals, forcing hackery such as the examples above, is really discouraging to wider adoption of the pipeline DSL.