Try this instead...

This commit is contained in:
nossr50
2025-12-14 13:07:11 -08:00
parent 6b6263d0b3
commit fc62946e27

4
Jenkinsfile vendored
View File

@@ -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(