APIv3/Jenkinsfile
2016-05-22 20:17:31 -07:00

13 lines
288 B
Groovy

node {
stage 'Git Clone'
checkout scm
stage 'Maven Compile'
if (env.BRANCH_NAME == 'master') {
sh 'mvn clean deploy -U'
} else {
sh 'mvn clean package -U'
}
stage 'Jenkins Archive'
step([$class: 'ArtifactArchiver', artifacts: 'target/*.jar', fingerprint: true])
}