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
fe3343cc
Commit
fe3343cc
authored
Nov 08, 2021
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify changes and exists are OR operations
parent
ed5e81a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+3
-1
No files found.
doc/ci/yaml/index.md
View file @
fe3343cc
...
...
@@ -1298,6 +1298,7 @@ docker build:
-
`rules: changes`
works the same way as
[
`only: changes` and `except: changes`
](
#onlychanges--exceptchanges
)
.
-
You can use
`when: never`
to implement a rule similar to
[
`except:changes`
](
#onlychanges--exceptchanges
)
.
-
`changes`
resolves to
`true`
if any of the matching files are changed (an
`OR`
operation).
#### `rules:exists`
...
...
@@ -1330,6 +1331,7 @@ job:
file paths. After the 10,000th check, rules with patterned globs always match.
In other words, the
`exists`
rule always assumes a match in projects with more
than 10,000 files.
-
`exists`
resolves to
`true`
if any of the listed files are found (an
`OR`
operation).
#### `rules:allow_failure`
...
...
@@ -1567,7 +1569,7 @@ docker build:
**Additional details**
:
-
If any of the matching files are changed (an
`OR`
operation),
`changes`
resolves to
`true`
.
-
`changes`
resolves to
`true`
if any of the matching files are changed (an
`OR`
operation)
.
-
If you use refs other than
`branches`
,
`external_pull_requests`
, or
`merge_requests`
,
`changes`
can't determine if a given file is new or old and always returns
`true`
.
-
If you use
`only: changes`
with other refs, jobs ignore the changes and always run.
...
...
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