Update credentials handling in Gradle and Jenkinsfile for improved security

This commit is contained in:
2025-06-28 23:03:33 +02:00
parent d76dd403fb
commit c9b919879a
2 changed files with 11 additions and 3 deletions
Vendored
+7 -2
View File
@@ -3,7 +3,12 @@ pipeline {
stages {
stage('Gradle') {
steps {
sh './gradlew build'
withCredentials([usernamePassword(credentialsId: 'destro-repo-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh '''
chmod +x gradlew
./gradlew build -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD
'''
}
}
}
stage('Archive') {
@@ -17,4 +22,4 @@ pipeline {
}
}
}
}
}