diff --git a/Jenkinsfile b/Jenkinsfile index 4025135..d427916 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') { @@ -17,4 +20,4 @@ pipeline { } } } -} \ No newline at end of file +}