Push based CI workflow pipeline material

18 views
Skip to first unread message

HUSSEIN KADIRI

unread,
May 10, 2021, 9:14:10 PM5/10/21
to go...@googlegroups.com
Hi again,
My CI workflow is push based (i.e some external tool makes an API call to trigger a workflow).
Materials in GoCD seem to imply a pull based system (i.e polling a repo, triggered from an upstream pipeline repo, etc) which is not my case. 

Being that materials are required fields and are irrelevant for a push based CI workflow, How does one bypass the required material restrictions for setting up a pipeline for a push based CI Workflow?

Marques Lee

unread,
May 10, 2021, 9:16:55 PM5/10/21
to go...@googlegroups.com
GoCD does support webhook from GitHub gitlab, bitbucket.com and self hosted bitbucket. Let me find the docs for that...

--
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/CAFD%2B7DnWnwPPaNNBhpQFtfWTKAymX1%3Dnp8grqy%3DGaLTniZW9Sw%40mail.gmail.com.

Marques Lee

unread,
May 10, 2021, 9:21:03 PM5/10/21
to go...@googlegroups.com
If you keep scrolling it will show you the webhook setup for GitHub, etc.

Side note:?If you are looking for webhook support in a PR workflow (where each PR generates its own pipeline), the Groovy DSL plugin has first class support for this. We use this internally for our PR builds on build.gocd.org.

HUSSEIN KADIRI

unread,
May 10, 2021, 9:30:14 PM5/10/21
to go...@googlegroups.com
Hmm,
Yes the web hook would make it push based. But It still does not get me past the material requirement. I don't want to configure a material as I have no need for it in my use case. I just want a pipeline that gets triggered from an external source.


Sriram Narayanan

unread,
May 10, 2021, 9:37:37 PM5/10/21
to go...@googlegroups.com
You could create a dummy material repo, and either trigger the pipeline via an API call or via a commit to that repo or via a schedule.

Ram

--
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.

Marques Lee

unread,
May 10, 2021, 9:37:43 PM5/10/21
to go...@googlegroups.com
Your pipeline does not need code? GoCD pipelines require some kind of material at least. Here a material need not be a code repo. It could be an upstream pipeline, or a package repository (eg, rpm) or a custom type based on a plugin.

As a side note, a webhook from, say, GitHub merely triggers the pipeline to fetch updates to its SCM material, rather than polling for code changes. That’s generally what it’s meant for.

Maybe could you elaborate more on your use case where you need a push mechanism to trigger a pipeline, but don’t need code to perform the tasks?

Reply all
Reply to author
Forward
0 new messages