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
1 changed files with 5 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -2,7 +2,11 @@ node {
stage 'Git Clone'
checkout scm
stage 'Maven Compile'
sh 'mvn clean deploy -U'
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])
}