From a80f7b632defc4dabd1455054829a1505f21a7a2 Mon Sep 17 00:00:00 2001 From: Sciocatti Date: Wed, 11 Jan 2023 23:43:58 +0200 Subject: [PATCH] Escaped more backslashes. --- cicd/Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cicd/Jenkinsfile b/cicd/Jenkinsfile index 13dd8f7..ecafa11 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}' } }