Update Jenkinsfile to include Nexus credentials for Gradle build

Integrated `NEXUS_CREDS` environment variable for secure handling of Nexus credentials during the Gradle shadowJar task.
This commit is contained in:
Teriuihi 2025-06-21 00:59:42 +02:00
parent 34b8824d49
commit e8e3293416

5
Jenkinsfile vendored
View File

@ -1,9 +1,12 @@
pipeline {
agent any
environment {
NEXUS_CREDS = credentials('alttd-snapshot-user')
}
stages {
stage('Gradle') {
steps {
sh 'bash gradlew shadowJar -x test'
sh './gradlew shadowJar -x test -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
}
}
stage('Archive') {