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
Jérome Perrin
gitlab-ce
Commits
d633bf0a
Commit
d633bf0a
authored
Jul 03, 2017
by
Achilleas Pipinellis
Committed by
Shinya Maeda
Jul 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copyedit docs for group-level secret variables
[ci skip]
parent
5b095475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
24 deletions
+16
-24
doc/ci/variables/README.md
doc/ci/variables/README.md
+16
-24
No files found.
doc/ci/variables/README.md
View file @
d633bf0a
...
...
@@ -10,8 +10,8 @@ The variables can be overwritten and they take precedence over each other in
this order:
1.
[
Trigger variables
][
triggers
]
(take precedence over all)
1.
[
Project-level secret variables
](
#project-level
-secret-variables
)
1.
[
Group-level secret variables
](
#group-level
-secret-variables
)
1.
Project-level
[
secret variables
](
#secret-variables
)
or
[
protected secret variables
](
#protected
-secret-variables
)
1.
Group-level
[
secret variables
](
#secret-variables
)
or
[
protected secret variables
](
#protected
-secret-variables
)
1.
YAML-defined
[
job-level variables
](
../yaml/README.md#job-variables
)
1.
YAML-defined
[
global variables
](
../yaml/README.md#variables
)
1.
[
Deployment variables
](
#deployment-variables
)
...
...
@@ -139,25 +139,29 @@ script:
-
'
eval
$LS_CMD'
# will execute 'ls -al $TMP_DIR'
```
##
Project-level s
ecret variables
##
S
ecret variables
>**Notes:**
-
This feature requires GitLab Runner 0.4.0 or higher.
-
Group-level secret variables added in GitLab 9.4.
-
Be aware that secret variables are not masked, and their values can be shown
in the job logs if explicitly asked to do so. If your project is public or
internal, you can set the pipelines private from your project's Pipelines
settings. Follow the discussion in issue
[
#13784
][
ce-13784
]
for masking the
secret variables.
GitLab CI allows you to define per-project
**secret variables**
that are set in
th
e build environment. The secret variables are stored out of the repository
(
`.gitlab-ci.yml`
) and are securely passed to GitLab Runner making them
available in the build environment. It's the recommended method to use for
storing things like passwords, secret keys and credentials.
GitLab CI allows you to define per-project
or per-group
**secret variables**
th
at are set in the build environment. The secret variables are stored out of
the repository (
`.gitlab-ci.yml`
) and are securely passed to GitLab Runner
making them available in the build environment. It's the recommended method to
use for
storing things like passwords, secret keys and credentials.
Secret variables can be added by going to your project's
**Settings ➔ Pipelines**
, then finding the section called
**Secret variables**
.
Project-level secret variables can be added by going to your project's
**Settings ➔ Pipelines**
, then finding the section called
**Secret variables**
.
Likewise, group-level secret variables can be added by going to your group's
**Settings ➔ Pipelines**
, then finding the section called
**Secret variables**
.
Any variables of [subgroups] will be inherited recursively.
Once you set them, they will be available for all subsequent pipelines. You can also
[
protect your variables
](
#protected-secret-variables
)
.
...
...
@@ -178,19 +182,6 @@ Protected variables can be added by going to your project's
Once you set them, they will be available for all subsequent pipelines.
## Group-level secret variables
>**Notes:**
This feature requires GitLab 9.4 or higher.
You can also define variables per Group. The essential functionality is exactly the
same with
[
project-level secret variables
](
#project-level-secret-variables
)
. You
can also
[
protect your variables
](
#protected-secret-variables
)
.
Secret variables can be added by going to your group's
**Settings ➔ Pipelines**
, then finding the section called
**Secret variables**
.
## Deployment variables
>**Note:**
...
...
@@ -449,3 +440,4 @@ export CI_REGISTRY_PASSWORD="longalfanumstring"
[
shellexecutors
]:
https://docs.gitlab.com/runner/executors/
[
triggered
]:
../triggers/README.md
[
triggers
]:
../triggers/README.md#pass-job-variables-to-a-trigger
[
subgroups
]:
../../user/group/subgroups/index.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