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