mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
settings credentials
This commit is contained in:
parent
5404aaadb5
commit
050b8179f7
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -34,9 +34,9 @@ pipeline {
|
|||
stage('build') {
|
||||
steps {
|
||||
script {
|
||||
withCredentials([file(credentialsId: 'ngx', variable: 'ROOT_CERT')]) {
|
||||
withCredentials([file(credentialsId: 'ngx', variable: 'ROOT_CERT'),file(credentialsId:'m2', variable: 'SETTINGS')]) {
|
||||
docker.image('maven:3.8.1-jdk-8').inside("-u root --network=jenkins_default") {
|
||||
sh 'cp $ROOT_CERT /usr/local/share/ca-certificates/ && update-ca-certificates'
|
||||
sh 'cp $ROOT_CERT /usr/local/share/ca-certificates/ && update-ca-certificates && cp $SETTINGS /root/.m2'
|
||||
sh 'mvn -B clean package'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue