Skip to content

Commit 373b24c

Browse files
committed
feat: BREAKING CHANGE. docker image now requires config file at runtime
instead of inserting the API key at build time. It now must be mounted during start up time.
1 parent a6db6a4 commit 373b24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def call(){
667667
echo "CONFIG = ${CONFIG}"
668668
def build_args = CONFIG['docker']['build']['buildArgs'].collect{"--build-arg=${it}"}.join(' ')
669669
def dockerImage = docker.build("${IMAGE_NAME}:${DOCKER_TAG}", "${build_args} .")
670-
withEnv(['DOCKER_REGISTRY=${CONFIG["docker"]["server"]["registry"]}']){
670+
withEnv(["DOCKER_REGISTRY=${CONFIG["docker"]["server"]["registry"]}"]){
671671
sh 'docker login $DOCKER_REGISTRY -u $DOCKER_CRED_USR -p $DOCKER_CRED_PSW'
672672
}
673673
// docker.withRegistry(CONFIG['docker']['server']['registry'], 'jenkins-nexus'){

0 commit comments

Comments
 (0)