Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3cb7ed7f
Commit
3cb7ed7f
authored
Mar 28, 2019
by
Marcia Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New doc - deprecated variables
parent
a06f9a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
30 deletions
+32
-30
doc/ci/variables/README.md
doc/ci/variables/README.md
+5
-30
doc/ci/variables/deprecated_variables.md
doc/ci/variables/deprecated_variables.md
+27
-0
No files found.
doc/ci/variables/README.md
View file @
3cb7ed7f
...
...
@@ -45,10 +45,11 @@ version of [GitLab Runner](https://docs.gitlab.com/runner/) is used. Consult the
version of Runner required.
NOTE:
**Note:**
Starting with GitLab 9.0, we have deprecated some variables. Read the
[
9.0 Renaming
](
#gitlab-90-renaming
)
section to find out their replacements.
**
You are
strongly advised to use the new variables as we will remove the old ones in
future GitLab releases.
**
Starting with GitLab 9.0, we have deprecated some variables.
Read the
[
deprecated variables
](
deprecated_variables.md
)
document to find out their replacements.
**
You are strongly advised
to use the new variables as we will remove the old ones in future
GitLab releases.
**
| Variable | GitLab | Runner | Description |
|-------------------------------------------|--------|--------|-------------|
...
...
@@ -141,32 +142,6 @@ future GitLab releases.**
|
**GITLAB_USER_NAME**
| 10.0 | all | The real name of the user who started the job |
|
**RESTORE_CACHE_ATTEMPTS**
| 8.15 | 1.9 | Number of attempts to restore the cache running a job |
## GitLab 9.0 renaming
To follow conventions of naming across GitLab, and to further move away from the
`build`
term and toward
`job`
CI variables have been renamed for the 9.0
release.
NOTE:
**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_ID`
|
`CI_JOB_ID`
|
|
`CI_BUILD_REF`
|
`CI_COMMIT_SHA`
|
|
`CI_BUILD_TAG`
|
`CI_COMMIT_TAG`
|
|
`CI_BUILD_BEFORE_SHA`
|
`CI_COMMIT_BEFORE_SHA`
|
|
`CI_BUILD_REF_NAME`
|
`CI_COMMIT_REF_NAME`
|
|
`CI_BUILD_REF_SLUG`
|
`CI_COMMIT_REF_SLUG`
|
|
`CI_BUILD_NAME`
|
`CI_JOB_NAME`
|
|
`CI_BUILD_STAGE`
|
`CI_JOB_STAGE`
|
|
`CI_BUILD_REPO`
|
`CI_REPOSITORY_URL`
|
|
`CI_BUILD_TRIGGERED`
|
`CI_PIPELINE_TRIGGERED`
|
|
`CI_BUILD_MANUAL`
|
`CI_JOB_MANUAL`
|
|
`CI_BUILD_TOKEN`
|
`CI_JOB_TOKEN`
|
## `.gitlab-ci.yml` defined variables
NOTE
**Note:**
...
...
doc/ci/variables/deprecated_variables.md
0 → 100644
View file @
3cb7ed7f
# Deprecated GitLab CI/CD variables
## 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.
NOTE:
**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_ID`
|
`CI_JOB_ID`
|
|
`CI_BUILD_REF`
|
`CI_COMMIT_SHA`
|
|
`CI_BUILD_TAG`
|
`CI_COMMIT_TAG`
|
|
`CI_BUILD_BEFORE_SHA`
|
`CI_COMMIT_BEFORE_SHA`
|
|
`CI_BUILD_REF_NAME`
|
`CI_COMMIT_REF_NAME`
|
|
`CI_BUILD_REF_SLUG`
|
`CI_COMMIT_REF_SLUG`
|
|
`CI_BUILD_NAME`
|
`CI_JOB_NAME`
|
|
`CI_BUILD_STAGE`
|
`CI_JOB_STAGE`
|
|
`CI_BUILD_REPO`
|
`CI_REPOSITORY_URL`
|
|
`CI_BUILD_TRIGGERED`
|
`CI_PIPELINE_TRIGGERED`
|
|
`CI_BUILD_MANUAL`
|
`CI_JOB_MANUAL`
|
|
`CI_BUILD_TOKEN`
|
`CI_JOB_TOKEN`
|
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment