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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
05e36790
Commit
05e36790
authored
Apr 10, 2019
by
mfluharty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Masked Variables to Variables docs
parent
ddab30ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
doc/ci/variables/README.md
doc/ci/variables/README.md
+15
-6
No files found.
doc/ci/variables/README.md
View file @
05e36790
...
@@ -136,12 +136,21 @@ The output will be:
...
@@ -136,12 +136,21 @@ The output will be:
![
Output custom variable
](
img/custom_variable_output.png
)
![
Output custom variable
](
img/custom_variable_output.png
)
CAUTION:
**Important:**
### Masked Variables
Be aware that 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
By default, variables will be created as masked variables.
internal, you can set the pipelines private from your
[
project's Pipelines
This means that the value of the variable will be hidden in job logs,
settings
](
../../user/project/pipelines/settings.md#visibility-of-pipelines
)
.
though it must match certain requirements to do so:
Follow the discussion in issue
[
#13784
][
ce-13784
]
for masking the variables.
-
The value must be a single line.
-
The value must not have escape characters.
-
The value must not use variables.
-
The value must not have any whitespace.
-
The value must be at least 8 characters long.
If the value does not meet the requirements above, then the CI variable will fail to save.
In order to save, either alter the value to meet the masking requirements
or disable
`Masked`
for the variable.
### Syntax of environment variables in job scripts
### Syntax of environment variables in job scripts
...
...
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