diff --git a/build-darkice.jenkins b/build-darkice.jenkins index ecfc6f8..0d2fec7 100644 --- a/build-darkice.jenkins +++ b/build-darkice.jenkins @@ -54,9 +54,9 @@ ENTRYPOINT [ "/bin/bash", "-c", "/usr/local/bin/darkice" ] container ('kaniko') { script { def ws = pwd() - writeFile (file: ws + "/Dockerfile", text: config.dockerFile) + writeFile (file: ws + "/Dockerfile", text: dockerFile) withCredentials([usernameColonPassword( - credentialsId: config.repoCreds, + credentialsId: repositoryCreds, variable: "dCreds" )]) { sh "set +x; printf '{\"auths\":{\"%s\":{\"auth\": \"%s\"}}}' \"registry.c.test-chamber-13.lan\" \"${dcreds.bytes.encodeBase64().toString()}\" > /kaniko/.docker/config.json"