From 9295230295a9e2d648481cdcb6d6c9a53ded8392 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Wed, 19 Feb 2020 10:34:25 +0000 Subject: [PATCH] [19.02.20] TAG/DEPLOY switch --- configuration/pipelines/build.groovy | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index f604607..e8ceac8 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -102,16 +102,17 @@ try { latest.push() } } - withCredentials( - [usernamePassword( - credentialsId: env.BITBUCKET_CREDENTIALS_ID, - passwordVariable: 'GIT_PASSWORD', - usernameVariable: 'GIT_USERNAME' - )] - ) { - sh "git tag ${env.APPLICATION_VERSION}" - sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}" - } +// } +// withCredentials( +// [usernamePassword( +// credentialsId: env.BITBUCKET_CREDENTIALS_ID, +// passwordVariable: 'GIT_PASSWORD', +// usernameVariable: 'GIT_USERNAME' +// )] +// ) { +// sh "git tag ${env.APPLICATION_VERSION}" +// sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}" +// } } stage('Deploy') {