mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +00:00
added secret credentials
This commit is contained in:
parent
daf27112d5
commit
40bfc20fe8
1 changed files with 3 additions and 0 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -34,10 +34,13 @@ pipeline {
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
withCredentials([usernameColonPassword(credentialsId: 'ngx', variable: 'ROOT_CERT')]) {
|
||||||
docker.image('maven:3.8.1-jdk-8').inside("--network=jenkins_default") {
|
docker.image('maven:3.8.1-jdk-8').inside("--network=jenkins_default") {
|
||||||
|
sh 'cp $ROOT_CERT /usr/local/share/ca-certificates/ && update-ca-certificates'
|
||||||
sh 'mvn -B clean package'
|
sh 'mvn -B clean package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("publish to nexus") {
|
stage("publish to nexus") {
|
||||||
|
|
Loading…
Reference in a new issue