Deprecated GitLab CI/CD variables
Read through this document to learn what predefined variables were deprecated and their new references.
GitLab 9.0 renamed variables
To follow conventions of naming across GitLab, and to further move away from the
build
term and toward job
, some CI/CD environment variables were renamed for GitLab 9.0
release.
Note:
Starting with GitLab 9.0, we have deprecated the
$CI_BUILD_*
variables. You are
strongly advised to use the new variables as we will remove the old ones in
future GitLab releases.
8.x name | 9.0+ name |
---|---|
CI_BUILD_BEFORE_SHA
| CI_COMMIT_BEFORE_SHA
|
CI_BUILD_ID
| CI_JOB_ID
|
CI_BUILD_MANUAL
| CI_JOB_MANUAL
|
CI_BUILD_NAME
| CI_JOB_NAME
|
CI_BUILD_REF
| CI_COMMIT_SHA
|
CI_BUILD_REF_NAME
| CI_COMMIT_REF_NAME
|
CI_BUILD_REF_SLUG
| CI_COMMIT_REF_SLUG
|
CI_BUILD_REPO
| CI_REPOSITORY_URL
|
CI_BUILD_STAGE
| CI_JOB_STAGE
|
CI_BUILD_TAG
| CI_COMMIT_TAG
|
CI_BUILD_TOKEN
| CI_JOB_TOKEN
|
CI_BUILD_TRIGGERED
| CI_PIPELINE_TRIGGERED
|
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc