Commit 6428f0a7 authored by Ndoumbe's avatar Ndoumbe

update

parent 28e76e90
...@@ -67,16 +67,16 @@ def call(body) { ...@@ -67,16 +67,16 @@ def call(body) {
dir('charts') { dir('charts') {
sh "rm -rf ./*" sh "rm -rf ./*"
git( credentialsId: 'GITLAB_CREDENTIALS', url: 'https://gitlab.baamtu.com/diopbe/helm-manifestfiles', branch: 'master' ) git( credentialsId: 'Gitlab-credential-nd', url: 'https://gitlab.baamtu.com/diopbe/helm-manifestfiles', branch: 'master' )
sh """ sh """
git config --global user.email "jenkins@baamtu.com" git config --global user.email "ndoumbe.diop@baamtu.com"
git config --global user.name "Jenkins" git config --global user.name "diopbe"
yq e -i '.image.tag = "${shortCommit}"' ${VALUES_FILE} yq e -i '.image.tag = "${shortCommit}"' ${VALUES_FILE}
git commit -am "new build for ${BRANCH_NAME} - commit hash=${shortCommit}" git commit -am "new build for ${BRANCH_NAME} - commit hash=${shortCommit}"
""" """
withCredentials([usernamePassword(credentialsId: 'GITLAB_CREDENTIALS', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { withCredentials([usernamePassword(credentialsId: 'Gitlab-credential-nd', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
sh ('git remote set-url origin https://${GIT_USERNAME}:${GIT_PASSWORD}@gitlab.baamtu.com/diopbe/helm-manifestfiles') sh ('git remote set-url origin https://${GIT_USERNAME}:${GIT_PASSWORD}@gitlab.baamtu.com/diopbe/helm-manifestfiles')
sh('git push origin master') sh('git push origin master')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment