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