jenkins: push git tag in release pipeline
@@ -631,7 +631,7 @@ def pushGitRepo(repoName) {
def gitOrg = 'ElektraInitiative'
def credentialsId = 'jenkins-publish-credentials'
withCredentials([usernamePassword(credentialsId: "${credentialsId}", passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
- sh("git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${gitOrg}/${repoName}.git")
+ sh("git push --follow-tags https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${gitOrg}/${repoName}.git")
}
}
