Update Jenkinsfile to only deploy master to Maven.

This commit is contained in:
Jonathan Halterman 2016-05-22 20:17:31 -07:00
parent 4bf36447b2
commit 3003b76a9e

4
Jenkinsfile vendored
View File

@ -2,7 +2,11 @@ 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])
}