Skip to content

Commit

Permalink
Fix promote pipeline (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste authored Aug 22, 2023
1 parent 8b62fa6 commit 727882a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .ci/jenkins/Jenkinsfile.promote
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ pipeline {
stage('Create release') {
steps {
script {
if (githubscm.isReleaseExist(getGitTag(), getGitAuthorCredsID())) {
githubscm.deleteReleaseAndTag(getGitTag(), getGitAuthorCredsID())
dir(getRepoName()) {
if (githubscm.isReleaseExist(getGitTag(), getGitAuthorCredsID())) {
githubscm.deleteReleaseAndTag(getGitTag(), getGitAuthorCredsID())
}
githubscm.createReleaseWithGeneratedReleaseNotes(getGitTag(), getBuildBranch(), githubscm.getPreviousTagFromVersion(getGitTag()), getGitAuthorCredsID())
githubscm.updateReleaseBody(getGitTag(), getGitAuthorCredsID())
}
githubscm.createReleaseWithGeneratedReleaseNotes(getGitTag(), getBuildBranch(), githubscm.getPreviousTagFromVersion(getGitTag()), getGitAuthorCredsID())
githubscm.updateReleaseBody(getGitTag(), getGitAuthorCredsID())
}
}
}
Expand Down

0 comments on commit 727882a

Please sign in to comment.