Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-veeramalla authored Oct 18, 2022
1 parent 646d621 commit d0c2847
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ pipeline {
script{
withCredentials([usernamePassword(credentialsId: 'f87a34a8-0e09-45e7-b9cf-6dc68feac670', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
sh '''
cat deployment.yaml
sed -i "s/v1/${BUILD_NUMBER}/g" deployment.yaml
cat deployment.yaml
git add deployment.yaml
git commit -m 'Updated the Staging App deployment | Jenkins Pipeline'
cat deploy.yaml
sed -i "s/v1/${BUILD_NUMBER}/g" deploy.yaml
cat deploy.yaml
git add deploy.yaml
git commit -m 'Updated the deploy yaml | Jenkins Pipeline'
git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${GIT_USERNAME}/cicd-demo-manifests-repo.git HEAD:main
'''
}
Expand Down

0 comments on commit d0c2847

Please sign in to comment.