Pass Nexus credentials to Gradle build in Jenkins pipeline

This commit is contained in:
akastijn 2025-06-27 20:53:44 +02:00
parent 97c711ea29
commit a7e5a99e01

4
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
stages {
stage('Gradle') {
steps {
sh 'bash gradlew build'
sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
}
}
stage('Archive') {
@ -23,4 +23,4 @@ pipeline {
}
}
}
}
}