Try fixing username password
This commit is contained in:
parent
2d0b727789
commit
19374ad837
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
|
@ -14,13 +14,12 @@ pipeline {
|
|||
}
|
||||
stage('Publish to Maven') {
|
||||
steps {
|
||||
withCredentials([usernameColonPassword(credentialsId: 'alttd-publish-user', variable: 'USERPASS')]) {
|
||||
sh '''
|
||||
set +x
|
||||
chmod +x gradlew
|
||||
./gradlew publish -PalttdDevPublishUser=publish -PalttdDevPublishPass=$USERPASS
|
||||
'''
|
||||
}
|
||||
withCredentials([usernamePassword(credentialsId: 'alttd-publish-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
||||
sh '''
|
||||
chmod +x gradlew
|
||||
./gradlew publish -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Archive') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user