Pass Nexus snapshot credentials to Gradle build in Jenkinsfile

This commit is contained in:
akastijn 2025-06-28 02:54:15 +02:00
parent 7876f92f62
commit d156ee954a

4
Jenkinsfile vendored
View File

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