APIv3/Jenkinsfile

13 lines
288 B
Plaintext
Raw Normal View History

2016-05-21 21:30:58 +02:00
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'
}
2016-05-21 21:30:58 +02:00
stage 'Jenkins Archive'
step([$class: 'ArtifactArchiver', artifacts: 'target/*.jar', fingerprint: true])
}