-
New Feature
-
Resolution: Fixed
-
Critical
-
-
4.0.0
As of PR #253 and version 3.0.0, the Bitbucket Server Integration plugin can generate Jenkins jobs for source branches of pull requests, but not for the pull requests themselves.
It would be useful to have a Jenkins job for the pull request itself and let other plugins query information about it. In particular, Branch API would call ChangeRequestSCMHead#getTarget() and set the CHANGE_TARGET global variable, which could then be passed to the discoverGitReferenceBuild pipeline step in order to let Warnings Next Generation compare the build warnings of the pull request to those of its target branch.
This would require the Bitbucket Server Integration plugin to define and use a class that implements the ChangeRequestSCMHead2 interface, like the GitHub Branch Source, Bitbucket Branch Source, Gitea, and P4 plugins already do. Currently, BitbucketWebhookConsumer.BitbucketSCMHeadPullRequestEvent just uses GitBranchSCMHead.
- depends on
-
JENKINS-60342 Include support to BitBucket Pull Request
- Closed
- is duplicated by
-
JENKINS-67437 No build created on PR creation in mulitbranch
- Open
-
JENKINS-66786 Not getting CHANGE_URL and CHANGE_TARGET in Jenkins
- Closed
-
JENKINS-71915 Need a feature of Pull Request tab in Multibranch Pipeline status page.
- Closed
- is related to
-
JENKINS-66672 Use pull request target branch for reference build by default
- Resolved
- links to