Unable to use env var in trigerring downstream pipeline

Hi,

I have repo1 that trigger downstream pipeline for repo2 and repo3 based on the CI env vars provided. Currently the pipeline fails as it is not able to process the env var.

My env var name is given below:

REPO_NAME: temp

My stage configuration:

create_cluster:
  stage: create_cluster
  variables:
    TARGET: $TARGET
  trigger:
    project: $REPO_NAME
    branch: $BRANCH
    strategy: depend

In the above manifest the $REPO_NAME value is not being extracted in yaml file.

If I read it correct, the variables are only extracted in the script parts of a pipeline. ( See https://docs.gitlab.com/ee/ci/variables/ )

1 Like