debian-mirror-gitlab/doc/ci/variables/deprecated_variables.md

37 lines
1.5 KiB
Markdown
Raw Normal View History

2019-09-04 21:01:54 +05:30
---
2020-06-23 00:09:42 +05:30
stage: Verify
group: Continuous Integration
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#designated-technical-writers
2019-09-04 21:01:54 +05:30
type: reference
---
2019-07-07 11:18:12 +05:30
# Deprecated GitLab CI/CD variables
2019-09-04 21:01:54 +05:30
Read through this document to learn what predefined variables
were deprecated and their new references.
2019-07-07 11:18:12 +05:30
## 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](README.md#predefined-environment-variables) were renamed for GitLab 9.0
release.
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 |
| --------------------- |------------------------ |
2019-12-26 22:10:19 +05:30
| `CI_BUILD_BEFORE_SHA` | `CI_COMMIT_BEFORE_SHA` |
2019-07-07 11:18:12 +05:30
| `CI_BUILD_ID` | `CI_JOB_ID` |
2019-12-26 22:10:19 +05:30
| `CI_BUILD_MANUAL` | `CI_JOB_MANUAL` |
| `CI_BUILD_NAME` | `CI_JOB_NAME` |
2019-07-07 11:18:12 +05:30
| `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` |
2019-12-26 22:10:19 +05:30
| `CI_BUILD_STAGE` | `CI_JOB_STAGE` |
| `CI_BUILD_TAG` | `CI_COMMIT_TAG` |
2019-07-07 11:18:12 +05:30
| `CI_BUILD_TOKEN` | `CI_JOB_TOKEN` |
2019-12-26 22:10:19 +05:30
| `CI_BUILD_TRIGGERED` | `CI_PIPELINE_TRIGGERED` |