[Ci-users] Can jobs triggered by github triggered jobs set status on github easily?

Barak Korren bkorren at redhat.com
Sat Sep 15 07:21:56 UTC 2018


בתאריך יום ו׳, 14 בספט׳ 2018, 22:00, מאת Randy Barlow ‏<
bowlofeggs at fedoraproject.org>:

> Greetings!
>
> I'm interested in sprucing up my JJB template[0] so that the following
> happens:
>
> 0) When a pull request is opened, a job is triggered that builds a
>    container with the contents of the pull request. The results of this
>    are reported to the pull request.
> 1) Success of that first job triggers a variety of jobs that all use
>    that container and test different things. I would like these to run
>    in parallel and I would like them to each also report back to the
>    pull request. I would like each of these to have their own
>   "status-context" that describes what they tested, if that makes sense.
>
> I see that there are a variety of ways to have jobs trigger other jobs,
> but what I don't know is how the subsequent jobs can set the
> "status-context" since they wouldn't be triggered from the pull request
> itself (outside of me manually using curl to GitHub, which I'd rather
> not do).
>
> Is there a nice clean/recommended way to achieve this with JJB?
>

The way we do this in stdci [1] for oVirt, RHV and CNV is to:

1. Manage complex flows with multiple tests using pipelines rather than
jobs calling in another.
2. Use the pipeline GitHub notify plugins [2] to send different
notifications from different tests.

Setting up pipelines with JJB is quite simple, but you can also use a
Jenkinsfile which can make JJB redundant.

[1]:
https://ovirt-infra-docs.readthedocs.io/en/latest/CI/Build_and_test_standards/
[2]:
https://github.com/jenkinsci/pipeline-githubnotify-step-plugin/blob/master/README.md

HTH,
Barak.


>
> [0]
>
> https://github.com/fedora-infra/bodhi/blob/develop/devel/ci/githubprb-project.yml
>
>
> _______________________________________________
> Ci-users mailing list
> Ci-users at centos.org
> https://lists.centos.org/mailman/listinfo/ci-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/ci-users/attachments/20180915/e21fc00c/attachment.html>


More information about the Ci-users mailing list