diff --git a/Jenkinsfile b/Jenkinsfile index d22b987..9066098 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,13 +3,12 @@ pipeline { stages { stage('Gradle') { steps { - withCredentials([usernameColonPassword(credentialsId: 'alttd-publish-user', variable: 'USERPASS')]) { - sh ''' - set +x - chmod +x gradlew - ./gradlew build -PalttdDevPublishUser=publish -PalttdDevPublishPass=$USERPASS - ''' - } + withCredentials([usernamePassword(credentialsId: 'alttd-publish-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { + sh ''' + chmod +x gradlew + ./gradlew build -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD + ''' + } } } stage('Publish to Maven') {