Jenkinsfile changed replace to apply.
Some checks reported errors
Home Cluster Builds/wedding-page/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2023-01-07 18:37:48 +02:00
parent 8cf18a3dc3
commit e8e3432855

2
cicd/Jenkinsfile vendored
View File

@@ -58,7 +58,7 @@ spec:
sh 'curl -LO "https://storage.googleapis.com/kubernetes-release/release/v1.24.3/bin/linux/arm64/kubectl"' sh 'curl -LO "https://storage.googleapis.com/kubernetes-release/release/v1.24.3/bin/linux/arm64/kubectl"'
sh 'chmod u+x ./kubectl' sh 'chmod u+x ./kubectl'
sh 'sed -ie "s/{{replaceMe}}/`date +%s`/g" `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml' sh 'sed -ie "s/{{replaceMe}}/`date +%s`/g" `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml'
sh './kubectl replace -f `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml' sh './kubectl apply -f `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml'
} }
} }
} }