Multibranch pipeline job not showing open pull requests

mindparse picture mindparse · Apr 27, 2017 · Viewed 7.5k times · Source

I have configured a multibranch pipeline job in Jenkins linked to our GitHub repo which is working nicely, feeding back the status of checks to the pull request in our GitHub so we know if the branch is good for merging in.

What I don't see are any open pull requests listed against the Job in Jenkins:

enter image description here

We also have the Blue Ocean plugin in installed and no PR's are shown there either.

Anyone know why this is the case? Am I missing another plugin\config?

Answer

Daniel Wright picture Daniel Wright · Mar 18, 2018

I had this issue as well. I tried what joey suggested, but that did not work. I found out that if you add PR-.+ (or PR-* as a wildcard) to your regex filter for branches to include, the pull requests "magically" appear. The documentation of this was found here. It's very frustrating that the "official" documentation for this plugin does not explain this (at least from what sparse documentation I could find). The configuration for my project, which works, is here: Picture.Jenkins.MultiBranch.Pipeline.PullRequests.addTo.Github.FilterDiscover.And.BlueOcean.png

I'm not sure if this is a recommended way to use this plugin for this use case, but Jenkins never seems to have ample documentation.