Created
November 2, 2016 17:03
-
-
Save muuki88/e2824008b653ac0fc5ba749fdf249616 to your computer and use it in GitHub Desktop.
Jenkins 2.0 SBT build pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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