only install when in master branch

This commit is contained in:
James Strachan
2018-01-16 21:01:51 +00:00
committed by GitHub
parent 9bc36352bf
commit 6a553e93a7

11
Jenkinsfile vendored
View File

@@ -3,8 +3,19 @@ pipeline {
label "jenkins-maven"
}
stages {
stage('Validate Environment') {
steps {
container('maven') {
sh 'make build'
}
}
}
stage('Update Environment') {
when {
branch 'master'
}
steps {
container('maven') {
sh 'make install'