Skip to content

Instantly share code, notes, and snippets.

@muuki88
Created November 2, 2016 17:03
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save muuki88/e2824008b653ac0fc5ba749fdf249616 to your computer and use it in GitHub Desktop.
Save muuki88/e2824008b653ac0fc5ba749fdf249616 to your computer and use it in GitHub Desktop.
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