From 88e9eece196dda9743f3c802945d15158de814b2 Mon Sep 17 00:00:00 2001 From: Sciocatti Date: Wed, 11 Jan 2023 23:43:06 +0200 Subject: [PATCH] Escaped backslash in Jenkinsfile. --- cicd/Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cicd/Jenkinsfile b/cicd/Jenkinsfile index a71da91..13dd8f7 100644 --- a/cicd/Jenkinsfile +++ b/cicd/Jenkinsfile @@ -36,9 +36,9 @@ spec: stage('Docker Build and Push') { steps { container("kaniko") { - sh 'destinationRegistry=`sed -n \'s/^destinationRegistry=\(.*\)/\1/p\' < config.conf`' - sh 'imageName=`sed -n \'s/^imageName=\(.*\)/\1/p\' < config.conf`' - sh 'imageTag=`sed -n \'s/^imageTag=\(.*\)/\1/p\' < config.conf`' + sh 'destinationRegistry=`sed -n \'s/^destinationRegistry=\\(.*\)/\\1/p\' < config.conf`' + sh 'imageName=`sed -n \'s/^imageName=\\(.*\)/\\1/p\' < config.conf`' + sh 'imageTag=`sed -n \'s/^imageTag=\\(.*\)/\\1/p\' < config.conf`' sh '/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination ${destinationRegistry}/${imageName}:${imageTag}' } }