Update Gradle Stage in Jenkinsfile

This commit is contained in:
Len 2026-07-31 08:31:44 -05:00
parent f4320de479
commit e65b4759b4

8
Jenkinsfile vendored
View File

@ -3,7 +3,13 @@ pipeline {
stages {
stage('Gradle') {
steps {
sh 'bash gradlew shadowJar'
withCredentials([usernamePassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh '''
set +x
chmod +x gradlew
./gradlew build -PalttdSnapshotUsername=$USERNAME -PalttdSnapshotPassword=$PASSWORD
'''
}
}
}
stage('Archive') {