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
75831bf9
Commit
75831bf9
authored
Jun 04, 2020
by
Marcel Amirault
Committed by
Suzanne Selhorn
Jun 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add crosslink to variables examples
parent
26f3d819
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
doc/ci/merge_request_pipelines/index.md
doc/ci/merge_request_pipelines/index.md
+1
-1
doc/ci/triggers/README.md
doc/ci/triggers/README.md
+1
-1
doc/ci/variables/predefined_variables.md
doc/ci/variables/predefined_variables.md
+2
-3
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+1
-1
doc/development/integrations/secure.md
doc/development/integrations/secure.md
+1
-1
No files found.
doc/ci/merge_request_pipelines/index.md
View file @
75831bf9
...
...
@@ -146,7 +146,7 @@ test:
Instead, you can use the
[
`$CI_COMMIT_REF_NAME` predefined environment
variable
](
../variables/predefined_variables.md
#variables-reference
)
in
variable
](
../variables/predefined_variables.md
)
in
combination with
[
`only:variables`
](
../yaml/README.md#onlyvariablesexceptvariables
)
to
accomplish this behavior:
...
...
doc/ci/triggers/README.md
View file @
75831bf9
...
...
@@ -23,7 +23,7 @@ The following methods of authentication are supported:
-
[
Trigger token
](
#trigger-token
)
-
[
CI job token
](
#ci-job-token
)
If using the
`$CI_PIPELINE_SOURCE`
[
predefined environment variable
](
../variables/predefined_variables.md
#variables-reference
)
If using the
`$CI_PIPELINE_SOURCE`
[
predefined environment variable
](
../variables/predefined_variables.md
)
to limit which jobs run in a pipeline, the value could be either
`pipeline`
or
`trigger`
,
depending on which trigger method is used.
...
...
doc/ci/variables/predefined_variables.md
View file @
75831bf9
...
...
@@ -10,8 +10,6 @@ type: reference
For an introduction on this subject, read through the
[
getting started with environment variables
](
README.md
)
document.
## Overview
Some of the predefined environment variables are available only if a minimum
version of
[
GitLab Runner
](
https://docs.gitlab.com/runner/
)
is used. Consult the table below to find the
version of Runner required.
...
...
@@ -22,7 +20,8 @@ Starting with GitLab 9.0, we have deprecated some variables. Read the
strongly advised to use the new variables as we will remove the old ones in
future GitLab releases.
**
## Variables reference
You can add a command to your
`.gitlab-ci.yml`
file to
[
output the values of all variables available for a job
](
README.md#list-all-environment-variables
)
.
| Variable | GitLab | Runner | Description |
|-----------------------------------------------|--------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
...
...
doc/ci/yaml/README.md
View file @
75831bf9
...
...
@@ -1428,7 +1428,7 @@ This means the `only:changes` policy is useful for pipelines where:
-
`$CI_PIPELINE_SOURCE == 'external_pull_request_event'`
If there is no Git push event, such as for pipelines with
[
sources other than the three above
](
../variables/predefined_variables.md
#variables-reference
)
,
[
sources other than the three above
](
../variables/predefined_variables.md
)
,
`changes`
can't determine if a given file is new or old, and will always
return true.
...
...
doc/development/integrations/secure.md
View file @
75831bf9
...
...
@@ -91,7 +91,7 @@ disable running the custom scanner.
GitLab also defines a
`CI_PROJECT_REPOSITORY_LANGUAGES`
variable, which provides the list of
languages in the repository. Depending on this value, your scanner may or may not do something different.
Language detection currently relies on the
[
`linguist`
](
https://github.com/github/linguist
)
Ruby gem.
See
[
GitLab CI/CD predefined variables
](
../../ci/variables/predefined_variables.md
#variables-reference
)
.
See
[
GitLab CI/CD predefined variables
](
../../ci/variables/predefined_variables.md
)
.
#### Policy checking example
...
...
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