Github PR Check on Downstream Pipeline

26 views
Skip to first unread message

Ehtesham Kafeel

unread,
Jun 18, 2022, 3:43:13 AM6/18/22
to go-cd
Hi,

We run our functional tests as downstream pipeline that runs on completion of multiple upstream pipelines with git as material, a GitHub Pr to be precise. We obviously get the status checks on the PR for the upstream pipeline but we also want to report the status of the downstream pipeline to the PR as status check.

Can we accomplish this with just GoCD?

Sriram Narayanan

unread,
Jun 18, 2022, 7:05:12 AM6/18/22
to go...@googlegroups.com
Could you combine the upstream and the downstream pipeline?

We sometimes find users keeping stages in separate pipelines, whereas those stages are better kept together within a single pipeline. 

In your case, if the first pipeline runs some checks in a stage and the next pipeline runs further checks, then you may want to review whether keeping all the stages together is appropriate.


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/05696206-e7b1-47a4-84cf-b4cc4c7d5b18n%40googlegroups.com.

Ehtesham Kafeel

unread,
Jun 18, 2022, 1:05:11 PM6/18/22
to go-cd
We have a feature that is based on different micro-services all having their own Github repository. We run our functional tests as a downstream pipeline so that we can run it if there is a change in any of the upstream micro-service. If we add it to stage then we will have to add that stage to every main pipeline. The functional tests downstream pipeline has a git material from where it checks out the test code.

Chad Wilson

unread,
Jun 19, 2022, 7:54:06 AM6/19/22
to go...@googlegroups.com
I think my reply on https://groups.google.com/g/go-cd/c/iKaEfamf3gM/m/9BcLnhQxBAAJ is relevant here - assuming you are using the build status plugin, if the downstream repos (e.g functional tests) don't have a direct link to a commit belonging to a PR via a direct material, I don't think there is a way for GoCD to report the status - i.e I don't believe it can "walk the VSM" back to the originating materials that are part of this build run to figure out which PR was responsible for the run.

You might be able to extend the plugin though; I haven't thought about what is technically possible or not.

-Chad

Ehtesham Kafeel

unread,
Jun 20, 2022, 1:53:10 AM6/20/22
to go-cd
Thanks, Chad for this lead. I will look into this plugin.
Reply all
Reply to author
Forward
0 new messages