casualjim
8/29/2011 - 3:30 PM

Working sbt build script for Jenkins to allow more than 1 project to build at a time

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 "$@"