[19.02.20] TAG/DEPLOY switch
This commit is contained in:
parent
1b50316449
commit
9295230295
@ -102,16 +102,17 @@ try {
|
|||||||
latest.push()
|
latest.push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
withCredentials(
|
// }
|
||||||
[usernamePassword(
|
// withCredentials(
|
||||||
credentialsId: env.BITBUCKET_CREDENTIALS_ID,
|
// [usernamePassword(
|
||||||
passwordVariable: 'GIT_PASSWORD',
|
// credentialsId: env.BITBUCKET_CREDENTIALS_ID,
|
||||||
usernameVariable: 'GIT_USERNAME'
|
// 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}"
|
// sh "git tag ${env.APPLICATION_VERSION}"
|
||||||
}
|
// sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}"
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user