Skip to content

Commit 39ab688

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 336957c commit 39ab688

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,8 @@ def call(){
660660
steps{
661661
script{
662662
configFileProvider([configFile(fileId: 'getmarc_deployapi', variable: 'CONFIG_FILE')]) {
663-
def CONFIG_JSON = readJSON(file: CONFIG_FILE)
664-
echo "CONFIG_JSON = ${CONFIG_JSON}"
665-
def CONFIG = CONFIG_JSON['deploy']
663+
def CONFIG = readJSON(file: CONFIG_FILE)['deploy']
664+
echo "CONFIG = ${CONFIG}"
666665
def build_args = CONFIG['docker']['build']['buildArgs'].collect{"--build-arg=${it}"}.join(' ')
667666
docker.withRegistry(CONFIG['docker']['server']['registry'], 'jenkins-nexus'){
668667
def dockerImage = docker.build("${IMAGE_NAME}:${DOCKER_TAG}", "${build_args} .")

0 commit comments

Comments
 (0)