Use `trigger` keyword for multi-project pipelines instead of custom script
trigger
keyword
Why we can't use Listing why we currently don't use trigger
keyword for multi-project pipelines but use a custom script. Incomplete list - will expand as I remember the reasons.
gitlab
to omnibus-gitlab-mirror
Trigger from - Contents of
*_VERSION
files can't be passed as trigger variables. - Some variables have different values based on
if
conditionals in thetrigger-build
script. Need to check if they can be rewritten using variables.
omnibus-gitlab
to omnibus-gitlab-mirror
Trigger from - Trigger jobs won't have any before/after script. This means we will have to add a job to check whether the commit we want to run a pipeline against is present in the mirror.
- NOTE: This is not a big issue, because we won't be adding any new job but replacing the existing one with a different one. (Trigger jobs are executed in Sidekiq and won't take up CI resources)
omnibus-gitlab-mirror
to gitlab-qa-mirror
Trigger from - The variable
RELEASE
is computed by a Ruby method and can't be known at the time of CI yaml evaluation.
What added functionality we have with custom script
- A comment with link to downstream pipelines is posted to the commit as a comment (which will show up in MRs also) - this helps a lot in easier navigation.