Escaped backslash in Jenkinsfile.
Some checks failed
Home Cluster Builds/Image-Deploy-Arm64/pipeline/head There was a failure building this commit

This commit is contained in:
2023-01-11 23:43:06 +02:00
parent 3d5b4a7008
commit 88e9eece19

6
cicd/Jenkinsfile vendored
View File

@@ -36,9 +36,9 @@ spec:
stage('Docker Build and Push') { stage('Docker Build and Push') {
steps { steps {
container("kaniko") { container("kaniko") {
sh 'destinationRegistry=`sed -n \'s/^destinationRegistry=\(.*\)/\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 'imageName=`sed -n \'s/^imageName=\\(.*\)/\\1/p\' < config.conf`'
sh 'imageTag=`sed -n \'s/^imageTag=\(.*\)/\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}' sh '/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination ${destinationRegistry}/${imageName}:${imageTag}'
} }
} }