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
1d28df26
Commit
1d28df26
authored
Dec 17, 2019
by
drew cimino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify changes: warning
- Removed warning block - Added link to pipelines source variable docs
parent
ddcdda54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+9
-8
No files found.
doc/ci/yaml/README.md
View file @
1d28df26
...
...
@@ -728,15 +728,16 @@ Learn more about [variables expressions](../variables/README.md#environment-vari
Using the
`changes`
keyword with
`only`
or
`except`
makes it possible to define if
a job should be created based on files modified by a Git push event.
This means the
`only:changes`
policy is only useful for Pipelines that are
triggered via
`push`
,
`merge_request_event`
, or
`external_merge_request_event`
.
If there is no Git push event,
`changes`
cannot determine if any given file is
new or old and will return true by default.
This means the
`only:changes`
policy is only useful for pipelines with:
CAUTION:
**Warning:**
Pipelines triggered via
`web`
,
`trigger`
,
`schedule`
,
`api`
,
`external`
,
`pipeline`
, or
`chat`
, the pipeline
**
will have no modified paths and
`changes`
policies will always evaluate to true
**
.
-
`$CI_PIPELINE_SOURCE == 'push'`
-
`$CI_PIPELINE_SOURCE == 'merge_request_event'`
-
`$CI_PIPELINE_SOURCE == 'external_pull_request_event'`
If there is no Git push event, as is the case in pipelines with
[
any other source
](
variables/predefined_variables.html#variables-reference
)
,
`changes`
cannot determine if a given file is new or old, and will always
return true.
For 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