Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multibranch pipeline job not showing open pull requests

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?

like image 826
mindparse Avatar asked Apr 27 '17 08:04

mindparse


2 Answers

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.

like image 60
Daniel Wright Avatar answered Oct 10 '22 22:10

Daniel Wright


I was getting the same issue. But this time within Blue Ocean UI as shown below

enter image description here

The fix was to switch from using Git to GitHub Branch Source at the job level and configure GitHub Branch Source. The job type was Multibranch pipeline.

like image 3
jbooker Avatar answered Oct 10 '22 20:10

jbooker