<div dir="auto"><div><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">בתאריך יום ג׳, 25 בספט׳ 2018, 11:46, מאת Tibor Dancs ‏<<a href="mailto:tdancs@redhat.com">tdancs@redhat.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>We are facing a curious issue. We have a job that needs to be triggered when PR is closed (either merge or close).</div><div>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).</div><div><br></div><div>Do you have any experience with this particular problem? Have you ever handled these github events or made a webtask hooking those webhooks?</div><div><br></div><div>Any information is welcome.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Hi,</div><div dir="auto"><br></div><div dir="auto">We faced exactly this issue when porting STDCI [1] to GitHub. What we ended up doing is use the generic webhook plugin [2] 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 [3] and here [4].</div><div dir="auto"><br></div><div dir="auto">[1]: <a href="https://ovirt-infra-docs.readthedocs.io/en/latest/CI/Build_and_test_standards/">https://ovirt-infra-docs.readthedocs.io/en/latest/CI/Build_and_test_standards/</a></div><div dir="auto">[2]: <a href="https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin">https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin</a></div><div dir="auto">[3]: <a href="https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/yaml/templates/standard-pipeline.yaml;hb=refs/heads/master">https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/yaml/templates/standard-pipeline.yaml;hb=refs/heads/master</a> (the standard-webhook-trigger template)</div><div dir="auto">[4]: <a href="https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/groovy-scripts/standard-webhook-trigger.groovy;hb=refs/heads/master">https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/groovy-scripts/standard-webhook-trigger.groovy;hb=refs/heads/master</a></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">HTH,</div><div dir="auto">Barak Korren.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Tibor Dancs<br></div></div>
_______________________________________________<br>
Ci-users mailing list<br>
<a href="mailto:Ci-users@centos.org" target="_blank" rel="noreferrer">Ci-users@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/ci-users" rel="noreferrer noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/ci-users</a><br>
</blockquote></div></div></div>