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
a2957291
Commit
a2957291
authored
Apr 17, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation on job level build variables
parent
a2649739
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
doc/ci/variables/README.md
doc/ci/variables/README.md
+6
-4
No files found.
doc/ci/variables/README.md
View file @
a2957291
## Variables
## Variables
When receiving a build from GitLab CI, the runner prepares the build environment.
When receiving a build from GitLab CI, the runner prepares the build environment.
It starts by setting a list of
**predefined variables**
(Environment Variables) and a list of
**user-defined variables**
It starts by setting a list of
**predefined variables**
(Environment Variables) and a list of
**user-defined variables**
The variables can be overwritten. They take precedence over each other in this order:
The variables can be overwritten. They take precedence over each other in this order:
1.
Secure variables
1.
Secure variables
1.
YAML-defined variables
1.
YAML-defined job-leve variables
1.
YAML-defined global variables
1.
Predefined variables
1.
Predefined variables
For example, if you define:
For example, if you define:
1.
API_TOKEN=SECURE
as Secure Variable
1.
`API_TOKEN=SECURE`
as Secure Variable
1.
API_TOKEN=YAML
as YAML-defined variable
1.
`API_TOKEN=YAML`
as YAML-defined variable
The
API_TOKEN
will take the Secure Variable value:
`SECURE`
.
The
`API_TOKEN`
will take the Secure Variable value:
`SECURE`
.
### Predefined variables (Environment Variables)
### Predefined variables (Environment Variables)
...
...
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