בתאריך יום ג׳, 25 בספט׳ 2018, 11:46, מאת Tibor Dancs tdancs@redhat.com:
Hello,
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.
Hi,
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].
[1]: https://ovirt-infra-docs.readthedocs.io/en/latest/CI/Build_and_test_standard... [2]: https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin [3]: https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/yaml/templ... (the standard-webhook-trigger template) [4]: https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/groovy-scr...
HTH, Barak Korren.
Tibor Dancs
Ci-users mailing list Ci-users@centos.org https://lists.centos.org/mailman/listinfo/ci-users