Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jenkins 2.0 SBT build pipeline
node {
stage('Git') {
git 'https://github.com/muuki88/activator-play-cluster-sample.git'
}
stage('Build') {
def builds = [:]
builds['scala'] = {
// assumes you have the sbt plugin installed and created an sbt installation named 'sbt-0.13.13'
sh "${tool name: 'sbt-0.13.13', type: 'org.jvnet.hudson.plugins.SbtPluginBuilder$SbtInstallation'}/bin/sbt compile test"
}
builds['frontend'] = {
echo 'building the frontend'
}
parallel builds
}
stage('Results') {
junit '**/target/test-reports/*.xml'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment