Group and Protected variables not coming through to CI jobs
Summary
For the last 6 hours (approx) the CI jobs have not been passing environment variables declared in Group Variables through to CI jobs. The same has been happening to the Protected environment variables, those marked for a specific environment are not coming through to the jobs marked with that environment.
Steps to reproduce
- Create a pipeline that runs
env | sort
and add some group variables and/or protected environment variables.
Example Project
N/A
What is the current bug behavior?
The environment variables are missing from the jobs
What is the expected correct behavior?
Relevant logs and/or screenshots
From the project:
From pipeline (340337023) job (1440020122), the group and protected variables are present.
From pipeline (340349347) job (1440074112), the group and protected variable are missing (the env | sort
was moved earlier up into the pipeline to figure out what's going wrong).
Relevant section from the pipelines .gitlab-ci.yml
:
.setupssh:
image: $CONTAINER_LATEST_TAG
before_script:
- shopt -s expand_aliases
- 'command -v ssh-agent >/dev/null
|| ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- mkdir -vp ~/.ssh
- chmod -v 700 ~/.ssh
- env | sort
and where it gets used:
test staging:
extends:
- .setupssh
stage: test
variables:
TS_ENV: staging
OUT_PLAN_RAW: "${CI_ENVIRONMENT_NAME}-${PLAN_RAW}"
OUT_PLAN_JSON: "${CI_ENVIRONMENT_NAME}-${PLAN_JSON}"
environment:
name: staging
deployment_tier: staging
script:
### Output of checks
Gilab.com
#### Results of GitLab environment info
Gitlab.com
### Results of GitLab application Check
### Possible fixes