Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created August 29, 2011 15:30
Show Gist options
  • Select an option

  • Save casualjim/1178629 to your computer and use it in GitHub Desktop.

Select an option

Save casualjim/1178629 to your computer and use it in GitHub Desktop.
Working sbt build script for Jenkins to allow more than 1 project to build at a time
#!/bin/sh
mkdir -p $WORKSPACE/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/extra
mkdir -p $WORKSPACE/../sbt/plugins/project
cp $HOME/share/java/*.jar $WORKSPACE/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/extra
cp $HOME/.sbt/plugins/Jenkins.scala $WORKSPACE/../sbt/plugins
cp $HOME/.sbt/plugins/project/build.scala $WORKSPACE/../sbt/plugins/project
java -Xms512m -Xmx2048m -XX:ReservedCodeCacheSize=256m -XX:MaxPermSize=512m -Xss8m -XX:+CMSClassUnloadingEnabled -Dsbt.global.base=$WORKSPACE/../sbt -Dfile.encoding='UTF-8' -Dsbt.ivy.home=$WORKSPACE/project/ivy2 -Dsbt.log.noformat=true -jar `dirname $0`/sbt-launch.jar "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment