Skip to content

Conversation

@iciclespider
Copy link
Contributor

@iciclespider iciclespider commented Jan 29, 2025

The multibranch-build-strategy-extension plugin makes an assumption about the format of the String returned by the toString method of the ChangeRequestSCMRevision implementation here. It extracts the leading hash value returned by toString.

This works with the github-branch-source plugin because that returns the pull commit first here.

It does not work with this gitlab-branch-source plugin because it returns the merge commit last. This pull request aligns this GitLab implementation with the GitHub implementation, allowing the multibranch-build-strategy-extension plugin to work properly with GitLab.

Testing done

Built and installed this new version on running Jenkins and verified that the GitLab based changes during merge requests are now only automatically triggered when the configured condition matches.

@iciclespider
Copy link
Contributor Author

LGTM!!!

@jetersen jetersen added the bug Something isn't working label Dec 1, 2025
@jetersen jetersen merged commit 32b2521 into jenkinsci:master Dec 1, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants