GitHub Branch Source plugin and pull requests from forked repos

33 views
Skip to first unread message

Ramanathan Muthaiah

unread,
Aug 1, 2017, 8:37:44 PM8/1/17
to Jenkins Users
https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#_controlling_what_is_built

Documentation mentions that "By default, Jenkins will build any branches it finds in the “origin” repository (the actual repository found in your organization). Also, any pull requests that have been filed from “forks” (clones in user accounts) will also be built . . ."

In our setup, running Jenkins v.2.60.1 with this plugin v2.2.0, the latter usecase i.e. pull requests filed from forks is not triggering automatic builds -- user A forks a repo, commits his/her changes to 'master' in forked repo and then creates a pull request from the actual repo.

I hope this is valid use case. So, does anyone know why this fails ?

/Ram

Stephen Connolly

unread,
Aug 2, 2017, 2:03:14 AM8/2/17
to jenkins...@googlegroups.com
If you don't have the webhooks set up correctly, then builds will only happen after a scan/index.

Have you tried triggering a scan/index.

If triggering a scan/index gets the PR job created and building, then you know it is a webhooks problem.

The next point is that CloudBees have not updated the envelope for CJE/CJT to the 2.2.x line of plugin releases (since they were only released last month) so the docs on the site are still 2.0.x.

With 2.2.x you should have behaviours to _Discover Branches_, _Discover Pull requests..._ make sure you have the behaviours you want added.

(I suspect a webhook issue by the way)

HTH

/Ram

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8043350c-1377-45cd-a04b-277cc2b9e7b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone
Reply all
Reply to author
Forward
0 new messages