Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66581

Implement ChangeRequestSCMHead2 for pull requests

XMLWordPrintable

    • 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.

            Unassigned Unassigned
            kon Kalle Niemitalo
            Votes:
            17 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: