diff --git a/Jenkinsfile b/Jenkinsfile index fb98e3b..60ec1a8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {