Use Jenkins credentials binding for Nexus snapshot authentication
This commit is contained in:
parent
ef211c8de3
commit
7d046a060e
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
|
@ -3,7 +3,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Gradle') {
|
stage('Gradle') {
|
||||||
steps {
|
steps {
|
||||||
withCredentials([usernameColonPassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
withCredentials([usernamePassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
||||||
sh '''
|
sh '''
|
||||||
set +x
|
set +x
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user