Trigger gitlab downstream pipeline from a upstream pipeline in a multi-project using trigger, rules and custom configuration variables
You could use dynamic child pipelines. (https://docs.gitlab.com/ee/ci/parent_child_pipelines.html#dynamic-child-pipelines).
You could create a job for triggering your job &quot;buildArtifact&quot; in a yml-file created with jsonnet in your &quot;checkArtifactPresent&quot;.
With using &quot;--ext-str&quot; or &quot;--ext-code&quot; in jsonnet.
You can control the yml-file creation (https://jsonnet.org/learning/tutorial.html#parameterize-entire-config).
Read more https://jsonnet.org/