Update Jenkinsfile

only publish on master
This commit is contained in:
Ellpeck 2020-03-05 00:40:27 +01:00 committed by GitHub
parent c3a02a7f38
commit cb58b9757e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
Jenkinsfile vendored
View file

@ -20,6 +20,9 @@ pipeline {
}
stage('Publish') {
when {
branch 'master'
}
steps {
sh './gradlew publish --no-daemon'
}
@ -29,4 +32,4 @@ pipeline {
environment {
local_maven = '/var/www/maven'
}
}
}