Multi-project pipeline: $CI_REPOSITORY_URL is empty
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
In my upstream project I have this simple gitlab-ci.yml:
stages:
- test
staging:
stage: test
variables:
UPSTREAM_URL: $CI_REPOSITORY_URL
UPSTREAM_COMMIT_REF_NAME: $CI_COMMIT_REF_NAME
trigger:
project: my/project
strategy: depend
All the actual tests are made in downstream project. The downstream CI will git clone upstream repository (master branch by default) to run its tests. When triggered from a MR in upstream repository, or from a fork of upstream repository, I want to tell downstream the URL & branch to fetch. Sadly with the example above, in downstream project $UPSTREAM_COMMIT_REF_NAME has the correct value but $UPSTREAM_URL is empty.
This is with GitLab Community Edition 13.1.4
Edited by 🤖 GitLab Bot 🤖