Running Scala (SBT) Script as Post-Build "Execute Shell" Task?

183 views
Skip to first unread message

Kevin Meredith

unread,
Dec 14, 2015, 11:06:56 AM12/14/15
to Jenkins Users
I added an "Execute Shell" post-build task to my Jenkins Job. 

However, the script fails since I don't have sbt (a build tool for Scala, the JVM language) installed.

The build job's Console Output shows:

>line 47: sbt: command not found

Based on this StackOverflow answer, I'm expecting that I need to:

1. install `sbt` on the Jenkins box
2. git clone my project to the Linux equivalent of `/Jenkins/workspace/`
3. edit my script to `cd` in order to get to the root directory of my project
4. run the script via `sbt ...`

Thanks
Kevin
Reply all
Reply to author
Forward
0 new messages