Skip to content

Commit

Permalink
updated jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
volley123 committed Jul 28, 2024
1 parent 2e23ee6 commit b1c355a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ pipeline {
script{
withCredentials([string(credentialsId: 'github', variable: 'GITHUB_TOKEN')]) {
sh '''
cat deploy.yaml
sed -i "s|image: volley123/cicd-e2e:.*|image: volley123/cicd-e2e:${BUILD_NUMBER}|g" deploy.yaml
git config user.email "[email protected]"
git config user.name "Varshil Desai"
BUILD_NUMBER=${BUILD_NUMBER}
sed -i "s/replaceImageTag/${BUILD_NUMBER}/g" deploy.yaml
cat deploy.yaml
git add deploy.yaml
git commit -m 'Updated the deploy yaml | Jenkins Pipeline'
Expand Down

0 comments on commit b1c355a

Please sign in to comment.