Triggering DownStream pipeline with Job Specific Runner

Hi All,
We are currently facing a conundrum with our multi-tenant project which contains various configuration files for each of our tenants and their associated environment. Our CI/CD Pipeline is split into two parts

  • An Upstream pipeline which analyses the new commit to master to determine which tenants/environmnets have been changed. This triggers the downstream pipeline with the correct environment variables via the API
  • A downstream pipeline which executes scripts to deploy changes to the tenants environment based on the environment variables passed through.

This works well, however we have a Gitlab Runner per environment to access the customers environment. We use this to avoid hard-coding multiple credentials within our scripts or CI environment variables.

Is there a way we can trigger this downstream pipeline with the specific Gitlab Runner? Our Gitlab Runners are tagged per environment so that we can use the passed environment variables to detect which runner it should be ran on.

I’ve had a look around the Gitlab CI, specific runners and shared runners (which ours are currently) but doesn’t seem to be supported.

Thanks in advance!

Hi,

If you have job per tenant in your downstream pipeline you can just specify which runner it should be executed on.

If you have a “master” job for all deployments that figures out what to do based on variables, thats not possible until you could use variables in tags: which I think is not implemented, yet.