Fork自 GitCode / 帮助文档
# Deprecated GitLab CI/CD variables > 原文:[https://docs.gitlab.com/ee/ci/variables/deprecated_variables.html](https://docs.gitlab.com/ee/ci/variables/deprecated_variables.html) * [GitLab 9.0 renamed variables](#gitlab-90-renamed-variables) # Deprecated GitLab CI/CD variables[](#deprecated-gitlab-cicd-variables "Permalink") 通读本文档以了解不赞成使用哪些预定义变量及其新引用. ## GitLab 9.0 renamed variables[](#gitlab-90-renamed-variables "Permalink") 为了在整个 GitLab 上遵循命名约定,并进一步远离`build`术语而转向`job` ,一些[CI / CD 环境变量](README.html#predefined-environment-variables)被重命名为 GitLab 9.0 版本. **注意:**从 GitLab 9.0 开始,我们已弃用`$CI_BUILD_*`变量. **强烈建议您使用新变量,因为我们将在以后的 GitLab 版本中删除旧变量.** | 8.x 名称 | 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` |