What is the current
bug
behavior?
I couldn't find why
sometimes
these variables are empty - for me it worked on the
same job
of the
same project
, using the
same runner
, one after the other in the time span of not more than 3 minutes.
What is the expected
correct
behavior?
Predefined CI variables should of course be present all the time.
Relevant logs and/or screenshots
If, for example, my predefined variable is
GOOGLE_KEY_demo
, then the trace debug output would be:
Success:
[0KRunning with gitlab-ci-multi-runner 9.1.0 (0118d89)
on docker-auto-scale (4e4528ca)
[0;m[0KUsing Docker executor with image docker:latest ...
[0;m[0KStarting service docker:dind ...
[0;m[0KPulling docker image docker:dind ...
[0;m[0KUsing docker image docker:dind ID=sha256:559dd16b4e0a64d9de2447d3de234743046443f770bf5226f45f9b7f9c68887b for docker service...
[0;m[0KWaiting for services to be up and running...
[0;m[0KUsing docker image sha256:f9835d79638bbc134f41909775e670d483cb2ffa1c3401a3e39e4e64d1c4a1be for predefined container...
[0;m[0KPulling docker image docker:latest ...
[0;m[0KUsing docker image docker:latest ID=sha256:311647fa6df81190cc97e1354000d18e549023699e0fe491134079e3f95501ea for build container...
[0;m+ set -eo pipefail
+ set +o noclobber
+ eval 'echo "Running on $(hostname) via runner-4e4528ca-machine-1494163081-7e8377c2-digital-ocean-2gb..."
+++ hostname
++ echo 'Running on runner-4e4528ca-project-2840288-concurrent-0 via runner-4e4528ca-machine-1494163081-7e8377c2-digital-ocean-2gb...'
+ exit 0
Running on runner-4e4528ca-project-2840288-concurrent-0 via runner-4e4528ca-machine-1494163081-7e8377c2-digital-ocean-2gb...
+ set -eo pipefail
+ set +o noclobber
+ eval 'export CI_PROJECT_DIR=$'\''/builds/MyCompany/my-project'\''
export CI_SERVER=$'\''yes'\''
export CI=$'\''true'\''
export GITLAB_CI=$'\''true'\''
export CI_SERVER_NAME=$'\''GitLab'\''
export CI_SERVER_VERSION=$'\''9.1.2-ee'\''
export CI_SERVER_REVISION=6488043
export CI_JOB_ID=15770972
export CI_JOB_NAME=$'\''package'\''
export CI_JOB_STAGE=$'\''package'\''
export CI_JOB_TOKEN=$'\''xxxxxxxxxxxxxxxxxxxx'\''
export CI_COMMIT_SHA=$'\''ec66e0b8d2eeead82507de7c6ac42f40dcceeeb4'\''
export CI_COMMIT_REF_NAME=$'\''develop'\''
export CI_COMMIT_REF_SLUG=$'\''develop'\''
export CI_REGISTRY_USER=$'\''gitlab-ci-token'\''
export CI_REGISTRY_PASSWORD=$'\''xxxxxxxxxxxxxxxxxxxx'\''
export CI_REPOSITORY_URL=$'\''https://gitlab-ci-token:[email protected]/MyCompany/my-project.git'\''
export CI_BUILD_ID=15770972
export CI_BUILD_TOKEN=$'\''xxxxxxxxxxxxxxxxxxxx'\''
export CI_BUILD_REF=$'\''ec66e0b8d2eeead82507de7c6ac42f40dcceeeb4'\''
export CI_BUILD_BEFORE_SHA=$'\''ec66e0b8d2eeead82507de7c6ac42f40dcceeeb4'\''
export CI_BUILD_REF_NAME=$'\''develop'\''
export CI_BUILD_REF_SLUG=$'\''develop'\''
export CI_BUILD_NAME=$'\''package'\''
export CI_BUILD_STAGE=$'\''package'\''
export CI_PROJECT_ID=2840288
export CI_PROJECT_NAME=$'\''my-project'\''
export CI_PROJECT_PATH=$'\''MyCompany/my-project'\''
export CI_PROJECT_NAMESPACE=$'\''MyCompany'\''
export CI_PROJECT_URL=$'\''https://gitlab.com/MyCompany/my-project'\''
export CI_PIPELINE_ID=8096646
export CI_RUNNER_ID=40788
export CI_RUNNER_DESCRIPTION=$'\''shared-runners-manager-2.gitlab.com'\''
export CI_RUNNER_TAGS=$'\''git-annex, mongo, postgres, mysql, ruby, linux, docker, shared'\''
export CI_REGISTRY=$'\''registry.gitlab.com'\''
export DOCKER_DRIVER=$'\''overlay'\''
export GIT_SUBMODULE_STRATEGY=$'\''normal'\''
export CI_DEBUG_TRACE=$'\''true'\''
export GITLAB_USER_ID=1164966
export GITLAB_USER_EMAIL=$'\''[email protected]'\''
export $'\''GOOGLE_KEY_demo'\''=$'\''ACTUAL VALUE OF MY VAR'
Failure:
[0KRunning with gitlab-ci-multi-runner 9.1.0 (0118d89)
on docker-auto-scale (e11ae361)
[0;m[0KUsing Docker executor with image docker:latest ...
[0;m[0KStarting service docker:dind ...
[0;m[0KPulling docker image docker:dind ...
[0;m[0KUsing docker image docker:dind ID=sha256:559dd16b4e0a64d9de2447d3de234743046443f770bf5226f45f9b7f9c68887b for docker service...
[0;m[0KWaiting for services to be up and running...
[0;m[0KUsing docker image sha256:ff162b90aec85022d3e1aae6d932c9b7843e21c07272bc113350ff6e122535e0 for predefined container...
[0;m[0KPulling docker image docker:latest ...
[0;m[0KUsing docker image docker:latest ID=sha256:311647fa6df81190cc97e1354000d18e549023699e0fe491134079e3f95501ea for build container...
[0;m+ set -eo pipefail
+ set +o noclobber
+ eval 'echo "Running on $(hostname) via runner-e11ae361-machine-1494162617-0f2fc259-digital-ocean-2gb..."
+++ hostname
++ echo 'Running on runner-e11ae361-project-2840288-concurrent-0 via runner-e11ae361-machine-1494162617-0f2fc259-digital-ocean-2gb...'
+ exit 0
Running on runner-e11ae361-project-2840288-concurrent-0 via runner-e11ae361-machine-1494162617-0f2fc259-digital-ocean-2gb...
+ set -eo pipefail
+ set +o noclobber
+ eval 'export CI_PROJECT_DIR=$'\''/builds/MyCompany/my-project'\''
export CI_SERVER=$'\''yes'\''
export CI=$'\''true'\''
export GITLAB_CI=$'\''true'\''
export CI_SERVER_NAME=$'\''GitLab'\''
export CI_SERVER_VERSION=$'\''9.1.2-ee'\''
export CI_SERVER_REVISION=6488043
export CI_JOB_ID=15770938
export CI_JOB_NAME=$'\''package'\''
export CI_JOB_STAGE=$'\''package'\''
export CI_JOB_TOKEN=$'\''xxxxxxxxxxxxxxxxxxxx'\''
export CI_COMMIT_SHA=$'\''ec66e0b8d2eeead82507de7c6ac42f40dcceeeb4'\''
export CI_COMMIT_REF_NAME=$'\''develop'\''
export CI_COMMIT_REF_SLUG=$'\''develop'\''
export CI_REGISTRY_USER=$'\''gitlab-ci-token'\''
export CI_REGISTRY_PASSWORD=$'\''xxxxxxxxxxxxxxxxxxxx'\''
export CI_REPOSITORY_URL=$'\''https://gitlab-ci-token:[email protected]/MyCompany/my-project.git'\''
export CI_BUILD_ID=15770938
export CI_BUILD_TOKEN=$'\''xxxxxxxxxxxxxxxxxxxx'\''
export CI_BUILD_REF=$'\''ec66e0b8d2eeead82507de7c6ac42f40dcceeeb4'\''
export CI_BUILD_BEFORE_SHA=$'\''ec66e0b8d2eeead82507de7c6ac42f40dcceeeb4'\''
export CI_BUILD_REF_NAME=$'\''develop'\''
export CI_BUILD_REF_SLUG=$'\''develop'\''
export CI_BUILD_NAME=$'\''package'\''
export CI_BUILD_STAGE=$'\''package'\''
export CI_PROJECT_ID=487978
export CI_PROJECT_NAME=$'\''my-project'\''
export CI_PROJECT_PATH=$'\''MyCompany/my-project'\''
export CI_PROJECT_NAMESPACE=$'\''MyCompany'\''
export CI_PROJECT_URL=$'\''https://gitlab.com/MyCompany/my-project'\''
export CI_PIPELINE_ID=8096646
export CI_RUNNER_ID=40786
export CI_RUNNER_DESCRIPTION=$'\''shared-runners-manager-1.gitlab.com'\''
export CI_RUNNER_TAGS=$'\''git-annex, mongo, postgres, mysql, ruby, linux, docker, shared'\''
export CI_REGISTRY=$'\''registry.gitlab.com'\''
export DOCKER_DRIVER=$'\''overlay'\''
export GIT_SUBMODULE_STRATEGY=$'\''normal'\''
export CI_DEBUG_TRACE=$'\''true'\''
export GITLAB_USER_ID=1164966
export GITLAB_USER_EMAIL=$'\''[email protected]'\''
export $'\''GOOGLE_KEY_demo'\''='\'''\''