Update credential variables in Jenkins pipeline to match usernamePassword usage

This commit is contained in:
akastijn 2025-06-28 02:59:15 +02:00
parent 19374ad837
commit 36c92fcdb3

5
Jenkinsfile vendored
View File

@ -3,11 +3,10 @@ pipeline {
stages { stages {
stage('Gradle') { stage('Gradle') {
steps { steps {
withCredentials([usernameColonPassword(credentialsId: 'alttd-publish-user', variable: 'USERPASS')]) { withCredentials([usernamePassword(credentialsId: 'alttd-publish-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh ''' sh '''
set +x
chmod +x gradlew chmod +x gradlew
./gradlew build -PalttdDevPublishUser=publish -PalttdDevPublishPass=$USERPASS ./gradlew build -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD
''' '''
} }
} }