2016-05-21 21:30:58 +02:00
|
|
|
node {
|
|
|
|
stage 'Git Clone'
|
|
|
|
checkout scm
|
|
|
|
stage 'Maven Compile'
|
2016-05-23 05:17:31 +02:00
|
|
|
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])
|
|
|
|
}
|