Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KOGITO-9706: more robustness in post-release job #4510

Open
wants to merge 1 commit into
base: main-kogito
Choose a base branch
from

Conversation

mbiarnes
Copy link
Contributor

Thank you for submitting this pull request

JIRA: KOGITO-9706

referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

  • paste the link(s) from GitHub here
  • link 2
  • link 3 etc.
How to backport a pull request to a different branch?

In order to automatically create a backporting pull request please add one or more labels having the following format backport-<branch-name>, where <branch-name> is the name of the branch where the pull request must be backported to (e.g., backport-7.67.x to backport the original PR to the 7.67.x branch).

NOTE: backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.

If something goes wrong, the author will be notified and at this point a manual backporting is needed.

NOTE: this automated backporting is triggered whenever a pull request on main branch is labeled or closed, but both conditions must be satisfied to get the new PR created.

.ci/jenkins/Jenkinsfile.kie-kogito-post-release Outdated Show resolved Hide resolved
.ci/jenkins/dsl/jobs.groovy Outdated Show resolved Hide resolved
Comment on lines +98 to +101
if (githubscm.isTagExist('origin', "${getKogitoDocsVersion()}-kogito")) {
githubscm.removeRemoteTag('origin', "${getKogitoDocsVersion()}-kogito", getGitAuthorCredsId())
}
githubscm.removeLocalTag("${getKogitoDocsVersion()}-kogito"))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (githubscm.isTagExist('origin', "${getKogitoDocsVersion()}-kogito")) {
githubscm.removeRemoteTag('origin', "${getKogitoDocsVersion()}-kogito", getGitAuthorCredsId())
}
githubscm.removeLocalTag("${getKogitoDocsVersion()}-kogito"))
if (githubscm.isTagExist('origin', "${getKogitoDocsVersion()}-kogito")) {
githubscm.removeRemoteTag('origin', "${getKogitoDocsVersion()}-kogito", getGitAuthorCredsId())
githubscm.removeLocalTag("${getKogitoDocsVersion()}-kogito"))
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants