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 name9.0+ name
CI_BUILD_BEFORE_SHACI_COMMIT_BEFORE_SHA
CI_BUILD_IDCI_JOB_ID
CI_BUILD_MANUALCI_JOB_MANUAL
CI_BUILD_NAMECI_JOB_NAME
CI_BUILD_REFCI_COMMIT_SHA
CI_BUILD_REF_NAMECI_COMMIT_REF_NAME
CI_BUILD_REF_SLUGCI_COMMIT_REF_SLUG
CI_BUILD_REPOCI_REPOSITORY_URL
CI_BUILD_STAGECI_JOB_STAGE
CI_BUILD_TAGCI_COMMIT_TAG
CI_BUILD_TOKENCI_JOB_TOKEN
CI_BUILD_TRIGGEREDCI_PIPELINE_TRIGGERED