Pass Nexus credentials to Gradle build in Jenkins pipeline
This commit is contained in:
parent
97c711ea29
commit
a7e5a99e01
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -3,7 +3,7 @@ pipeline {
|
|||
stages {
|
||||
stage('Gradle') {
|
||||
steps {
|
||||
sh 'bash gradlew build'
|
||||
sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
||||
}
|
||||
}
|
||||
stage('Archive') {
|
||||
|
|
@ -23,4 +23,4 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user