An example pipeline for the gate resource.
The gates branch of this repo contains the state of all gates used in this pipeline.
This pipeline has the following gates:
a-gate
: a simple gateb-gate
: anoter simple gateauto-gate
: an auto-gate with items that automatically close when a combination of items passed through gatesa
andb
This example pipeline has the following jobs. To see an example flow, trigger the jobs in the same order as they are described below.
In a real pipeline, job triggers would of course come from some other source, e.g. a completed build step or a changed source repository.
push-a
generates a random item passing througha-gate
push-b
generates a random item passing throughb-gate
push-autogate
generates an autoclose item inauto-gate
that depends on the last two item that passed througha-gate
andb-gate
respectivelyautoclose-autogate
updates the autoclose items inauto-gate
echo
triggers for every item passing throughauto-gate
and simply prints its contents