Update Jenkinsfile to only deploy master to Maven.
This commit is contained in:
parent
4bf36447b2
commit
3003b76a9e
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user