I have a project I have configured according to the docs for the Github 
Pull Request Builder's intructions, and it builds and tests the Pull 
Requests *just fine*. The problem is that I want it to start builds when it 
detects changes to the other branches as well, not just for pull requests, 
and that seems to fail. 

For instance, pushing changes to "dev" should result in an immediate build 
in Jenkins.

In the advanced section of the Git config of the project, I have this as 
the value for "Refspec": +refs/heads/*:refs/remotes/origin/* 
+refs/pull/*:refs/remotes/origin/pr/*

That should download all branches from GitHub and all pull requests. 

I have also ticked 
- Build when a change is pushed to GitHub
- Use github hooks for build triggering

Having both of these seems superfluous, but I am not sure which settings 
belongs to which pluign, or if the settings of one plugin is a dependant of 
the other, so I have ticked both. 
The two endpoints that have set up in GitHub hooks is
- /github-webhook/
- /ghprbhook/

Not sure which belongs where, but both of them have the "push"  setting 
ticked.

The log might help, as I see an error there:

Jan 13, 2016 12:37:23 AM INFO 
org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber 
onEvent

Received POST for https://github.com/MWNG/NG-Azure-REST-API

Jan 13, 2016 12:37:23 AM INFO 
org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 
run

Poked NG REST

Jan 13, 2016 12:37:24 AM WARNING org.jenkinsci.plugins.ghprb.GhprbRootAction 
doIndex

Request not known


As can be seen, something is not handling the request very well. I suspect 
this might be it, but I have tried setting both application/json and the 
forms type in the Github hook settings to no avail.

Regards
Carl-Erik





-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e218e005-6a94-4403-b414-cda367bc0d9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to