Allow passing $CI_REGISTRY_USER and $CI_REGISTRY_PASSWORD to multi-project pipeline
Proposal
Right now, if you're using multi-project pipelines, you can send several variables to the other pipeline.
However, there are 2 variables that for some reason can't be sent:
$CI_REGISTRY_USER
$CI_REGISTRY_PASSWORD
These are very useful in this context. For example, if you keep your deployment instructions in a repo B, you can trigger B's pipeline with A's registry auth variables to make B's pipeline able to pull A's image and deploy it.
Example (that won't work):
# A's pipeline
deploy in B:
trigger:
project: B
strategy: depend
variables:
UPSTREAM_REGISTRY_USER: $CI_REGISTRY_USER
UPSTREAM_REGISTRY_PASSWORD: $CI_REGISTRY_PASSWORD
---
# B's pipeline
deploy from upstream:
script:
- echo $UPSTREAM_REGISTRY_USER $UPSTREAM_REGISTRY_PASSWORD
B's deploy from upstream
job will echo nothing.
Edited by Jairo Llopis