diff --git a/Jenkinsfile b/Jenkinsfile index 9a5a5e701..153f41f99 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -155,7 +155,14 @@ pipeline { } stage('Build Agent Docker Image') { steps { - sh "docker build ${Globals.dockerCacheArg} -t legion-docker-agent:${env.BUILD_NUMBER} -f pipeline.Dockerfile ." + withCredentials([ + file(credentialsId: "vault-legion-test.epm.kharlamov.biz", variable: 'vault')]) { + sh "echo kek" + sh "echo ${vault}" + sh "cat ${vault}" + sh "exit 1" + sh "docker build ${Globals.dockerCacheArg} -t legion-docker-agent:${env.BUILD_NUMBER} -f pipeline.Dockerfile ." + } } } stage('Build dependencies') {