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

Send replaced branch for pr #53

Merged
merged 2 commits into from
May 16, 2023
Merged

Conversation

pfeuffer
Copy link
Contributor

This fixes an issue with CI status in SCM-Manager for
Jenkins multibranch pipelines.
If such a pipeline fails for a branch for whatever
reason (eg. due to a flappy test), this result is stored
in SCM-Manager for the revision. If later on a pull
request is created for this branch, this failed build
is considered as a failed status for the pull request,
even though the pull request build itself might be
successful.

To fix this, this plugin computes the name of the
branch build for a pull request build and sends this
name as 'replaces' within the status request for
SCM-Manager. This 'replaces' field will be evaluated
with the CI plugin version 2.6.0 or later in SCM-Manager.

pfeuffer added 2 commits May 10, 2023 17:27
This fixes an issue with CI status in SCM-Manager for
Jenkins multibranch pipelines.
If such a pipeline fails for a branch for whatever
reason (eg. due to a flappy test), this result is stored
in SCM-Manager for the revision. If later on a pull
request is created for this branch, this failed build
is considered as a failed status for the pull request,
even though the pull request build itself might be
successful.

To fix this, this plugin computes the name of the
branch build for a pull request build and sends this
name as 'replaces' within the status request for
SCM-Manager. This 'replaces' field will be evaluated
with the CI plugin version 2.6.0 or later in SCM-Manager.
@pfeuffer pfeuffer merged commit 5f77ff1 into master May 16, 2023
@pfeuffer pfeuffer deleted the feature/replace_branch_status_for_pr branch May 16, 2023 15:54
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.

1 participant