From 050b8179f73b8fb7b5577daa23c62a95e0316c16 Mon Sep 17 00:00:00 2001 From: VSAzima Date: Tue, 4 May 2021 11:48:18 +0400 Subject: [PATCH] settings credentials --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 40670341f..bffe8be6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } }