Using variable / relative path in downstream project trigger

Hi there,

I have a GitLab CI build for a project from which I’d like to trigger a downstream project. The downstream project is residing in the same group, so I’d prefer to be able to reference it relatively.

So far, I tried providing a non-absolute path to the downstream project:

build-downstream:
  stage: triggers
  trigger:
    project: downstream
    strategy: depend
  needs:
    - job: build
      artifacts: false

as well as using the CI_PROJECT_NAMESPACE variable to figure out the current group:

build-downstream:
  stage: triggers
  trigger:
    project: ${CI_PROJECT_NAMESPACE}/downstream
    strategy: depend
  needs:
    - job: build
      artifacts: false

Unfortunately, for both variants GitLab is infinitely showing the “pause” symbol for the “build-downstream” job.

Is there another way to achieve triggering relative downstream builds?

Thanks,
Thilo

Hi @thilog
you can try ../downstream, but AFAIK only (absolute) full path is supported and variables are not.