Update credential variables in Jenkins pipeline to match usernamePassword usage
This commit is contained in:
Vendored
+6
-7
@@ -3,13 +3,12 @@ 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=$USERNAME -PalttdDevPublishPass=$PASSWORD
|
||||||
./gradlew build -PalttdDevPublishUser=publish -PalttdDevPublishPass=$USERPASS
|
'''
|
||||||
'''
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Publish to Maven') {
|
stage('Publish to Maven') {
|
||||||
|
|||||||
Reference in New Issue
Block a user