Use Jenkins credentials binding for Nexus snapshot authentication

This commit is contained in:
akastijn 2025-06-28 02:59:55 +02:00
parent ef211c8de3
commit 7d046a060e

2
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
stages { stages {
stage('Gradle') { stage('Gradle') {
steps { steps {
withCredentials([usernameColonPassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh ''' sh '''
set +x set +x
chmod +x gradlew chmod +x gradlew