[Ci-users] Triggering job after PR close
bkorren at redhat.com
Tue Sep 25 11:00:32 UTC 2018
בתאריך יום ג׳, 25 בספט׳ 2018, 11:46, מאת Tibor Dancs <tdancs at redhat.com>:
> We are facing a curious issue. We have a job that needs to be triggered
> when PR is closed (either merge or close).
> Unfortunately Jenkins Github Pull Request Builder plugin does not support
> that event (yet?) so there are no triggers available for PR close (even
> though it has triggers for commit).
> Do you have any experience with this particular problem? Have you ever
> handled these github events or made a webtask hooking those webhooks?
> Any information is welcome.
We faced exactly this issue when porting STDCI  to GitHub. What we ended
up doing is use the generic webhook plugin  and make it trigger a single
job that inspects the input and triggers the proper job for the event we've
got. Source code for the triggering job can be found here  and here .
(the standard-webhook-trigger template)
> Ci-users mailing list
> Ci-users at centos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ci-users