From: Erik Brakkee Date: Sun, 17 Nov 2024 19:11:42 +0000 (+0100) Subject: correct passing of GO env vars X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=5555597b51b487447474d249f47a16f36ccf265a;p=pipelinelib correct passing of GO env vars --- diff --git a/vars/buildcontainer.groovy b/vars/buildcontainer.groovy index 98fe94e..e371450 100644 --- a/vars/buildcontainer.groovy +++ b/vars/buildcontainer.groovy @@ -31,8 +31,8 @@ def call(Map args) { sh """ echo "Building container with settings: ${args}" /kaniko/executor $mirrorArg \\ - --build-arg GOPROXY="$GOPROXY" \\ - --build-arg GOSUMDB="$GTOSUMDB" \\ + --build-arg GOPROXY="${env.GOPROXY}" \\ + --build-arg GOSUMDB="${env.GOSUMDB}" \\ --dockerfile ${args.dockerfile} \\ --cache=${args.cache} --cache-ttl=${args.cachettl} \\ --context \$( pwd )/${args.context} \\