<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">בתאריך יום ו׳, 14 בספט׳ 2018, 22:00, מאת Randy Barlow ‏<<a href="mailto:bowlofeggs@fedoraproject.org">bowlofeggs@fedoraproject.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings!<br>
<br>
I'm interested in sprucing up my JJB template[0] so that the following<br>
happens:<br>
<br>
0) When a pull request is opened, a job is triggered that builds a<br>
   container with the contents of the pull request. The results of this<br>
   are reported to the pull request.<br>
1) Success of that first job triggers a variety of jobs that all use<br>
   that container and test different things. I would like these to run<br>
   in parallel and I would like them to each also report back to the<br>
   pull request. I would like each of these to have their own<br>
  "status-context" that describes what they tested, if that makes sense.<br>
<br>
I see that there are a variety of ways to have jobs trigger other jobs,<br>
but what I don't know is how the subsequent jobs can set the<br>
"status-context" since they wouldn't be triggered from the pull request<br>
itself (outside of me manually using curl to GitHub, which I'd rather<br>
not do).<br>
<br>
Is there a nice clean/recommended way to achieve this with JJB?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The way we do this in stdci [1] for oVirt, RHV and CNV is to:</div><div dir="auto"><br></div><div dir="auto">1. Manage complex flows with multiple tests using pipelines rather than jobs calling in another.</div><div dir="auto">2. Use the pipeline GitHub notify plugins [2] to send different notifications from different tests.</div><div dir="auto"><br></div><div dir="auto">Setting up pipelines with JJB is quite simple, but you can also use a Jenkinsfile which can make JJB redundant.</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://github.com/jenkinsci/pipeline-githubnotify-step-plugin/blob/master/README.md">https://github.com/jenkinsci/pipeline-githubnotify-step-plugin/blob/master/README.md</a></div><div dir="auto"><br></div><div dir="auto">HTH,</div><div dir="auto">Barak.</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">
<br>
<br>
[0]<br>
<a href="https://github.com/fedora-infra/bodhi/blob/develop/devel/ci/githubprb-project.yml" rel="noreferrer noreferrer" target="_blank">https://github.com/fedora-infra/bodhi/blob/develop/devel/ci/githubprb-project.yml</a><br>
<br>
<br>
_______________________________________________<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>