Jenkins pipeline push Git tag
在Jenkins pipeline中可以通过Jenkins Node服务器上的原生的git
命令来创建并push Git tag:
stage('Checkout') {
steps {
// Pull code
git branch: "${GIT_REPO_BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}", url: "${GIT_REPO_URL}"
// Git tag and push tag
// Requires to install User Build Vars plug