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
Tatuya Kamada
gitlab-ce
Commits
90d7b95a
Commit
90d7b95a
authored
Mar 09, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move example variables output to bottom
[ci skip]
parent
91c2b4ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
doc/ci/variables/README.md
doc/ci/variables/README.md
+36
-36
No files found.
doc/ci/variables/README.md
View file @
90d7b95a
...
...
@@ -75,41 +75,6 @@ future GitLab releases.**
|
**GITLAB_USER_EMAIL**
| 8.12 | all | The email of the user who started the job |
|
**RESTORE_CACHE_ATTEMPTS**
| 8.15 | 1.9 | Number of attempts to restore the cache running a job |
Example values:
```
bash
export
CI_JOB_ID
=
"50"
export
CI_COMMIT_SHA
=
"1ecfd275763eff1d6b4844ea3168962458c9f27a"
export
CI_COMMIT_REF_NAME
=
"master"
export
CI_REPOSITORY
=
"https://gitab-ci-token:abcde-1234ABCD5678ef@example.com/gitlab-org/gitlab-ce.git"
export
CI_COMMIT_TAG
=
"1.0.0"
export
CI_JOB_NAME
=
"spec:other"
export
CI_JOB_STAGE
=
"test"
export
CI_JOB_MANUAL
=
"true"
export
CI_JOB_TRIGGERED
=
"true"
export
CI_JOB_TOKEN
=
"abcde-1234ABCD5678ef"
export
CI_PIPELINE_ID
=
"1000"
export
CI_PROJECT_ID
=
"34"
export
CI_PROJECT_DIR
=
"/builds/gitlab-org/gitlab-ce"
export
CI_PROJECT_NAME
=
"gitlab-ce"
export
CI_PROJECT_NAMESPACE
=
"gitlab-org"
export
CI_PROJECT_PATH
=
"gitlab-org/gitlab-ce"
export
CI_PROJECT_URL
=
"https://example.com/gitlab-org/gitlab-ce"
export
CI_REGISTRY
=
"registry.example.com"
export
CI_REGISTRY_IMAGE
=
"registry.example.com/gitlab-org/gitlab-ce"
export
CI_RUNNER_ID
=
"10"
export
CI_RUNNER_DESCRIPTION
=
"my runner"
export
CI_RUNNER_TAGS
=
"docker, linux"
export
CI_SERVER
=
"yes"
export
CI_SERVER_NAME
=
"GitLab"
export
CI_SERVER_REVISION
=
"70606bf"
export
CI_SERVER_VERSION
=
"8.9.0"
export
GITLAB_USER_ID
=
"42"
export
GITLAB_USER_EMAIL
=
"user@example.com"
export
CI_REGISTRY_USER
=
"gitlab-ci-token"
export
CI_REGISTRY_PASSWORD
=
"longalfanumstring"
```
## 9.0 Renaming
To follow conventions of naming across GitLab, and to futher move away from the
...
...
@@ -125,7 +90,7 @@ release.
|
`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
`
|
|
`CI_BUILD_REPO`
|
`CI_REPOSITORY
_URL`
|
|
`CI_BUILD_TRIGGERED`
|
`CI_PIPELINE_TRIGGERED`
|
|
`CI_BUILD_MANUAL`
|
`CI_JOB_MANUAL`
|
|
`CI_BUILD_TOKEN`
|
`CI_JOB_TOKEN`
|
...
...
@@ -381,6 +346,41 @@ job_name:
- export
```
Example values:
```
bash
export
CI_JOB_ID
=
"50"
export
CI_COMMIT_SHA
=
"1ecfd275763eff1d6b4844ea3168962458c9f27a"
export
CI_COMMIT_REF_NAME
=
"master"
export
CI_REPOSITORY
=
"https://gitab-ci-token:abcde-1234ABCD5678ef@example.com/gitlab-org/gitlab-ce.git"
export
CI_COMMIT_TAG
=
"1.0.0"
export
CI_JOB_NAME
=
"spec:other"
export
CI_JOB_STAGE
=
"test"
export
CI_JOB_MANUAL
=
"true"
export
CI_JOB_TRIGGERED
=
"true"
export
CI_JOB_TOKEN
=
"abcde-1234ABCD5678ef"
export
CI_PIPELINE_ID
=
"1000"
export
CI_PROJECT_ID
=
"34"
export
CI_PROJECT_DIR
=
"/builds/gitlab-org/gitlab-ce"
export
CI_PROJECT_NAME
=
"gitlab-ce"
export
CI_PROJECT_NAMESPACE
=
"gitlab-org"
export
CI_PROJECT_PATH
=
"gitlab-org/gitlab-ce"
export
CI_PROJECT_URL
=
"https://example.com/gitlab-org/gitlab-ce"
export
CI_REGISTRY
=
"registry.example.com"
export
CI_REGISTRY_IMAGE
=
"registry.example.com/gitlab-org/gitlab-ce"
export
CI_RUNNER_ID
=
"10"
export
CI_RUNNER_DESCRIPTION
=
"my runner"
export
CI_RUNNER_TAGS
=
"docker, linux"
export
CI_SERVER
=
"yes"
export
CI_SERVER_NAME
=
"GitLab"
export
CI_SERVER_REVISION
=
"70606bf"
export
CI_SERVER_VERSION
=
"8.9.0"
export
GITLAB_USER_ID
=
"42"
export
GITLAB_USER_EMAIL
=
"user@example.com"
export
CI_REGISTRY_USER
=
"gitlab-ci-token"
export
CI_REGISTRY_PASSWORD
=
"longalfanumstring"
```
[
ce-13784
]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/13784
[
runner
]:
https://docs.gitlab.com/runner/
[
triggered
]:
../triggers/README.md
...
...
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