mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-12-16 14:08:44 +01:00
Try this instead...
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -27,7 +27,9 @@ pipeline {
|
|||||||
|
|
||||||
stage('Deploy to Nexus') {
|
stage('Deploy to Nexus') {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
expression {
|
||||||
|
return sh(script: 'git rev-parse --abbrev-ref HEAD', returnStdout: true).trim() == 'master'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
withCredentials([usernamePassword(
|
withCredentials([usernamePassword(
|
||||||
|
|||||||
Reference in New Issue
Block a user