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
6f93eae7
Commit
6f93eae7
authored
Aug 12, 2020
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak nesting of rules sections
parent
2d896d3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+4
-4
No files found.
doc/ci/yaml/README.md
View file @
6f93eae7
...
...
@@ -1258,7 +1258,7 @@ Also, we don't recommend mixing `only/except` jobs with `rules` jobs in the same
It may not cause YAML errors, but debugging the exact execution behavior can be complex
due to the different default behaviors of
`only/except`
and
`rules`
.
####
#
`rules:if`
#### `rules:if`
`rules:if`
clauses determine whether or not jobs are added to a pipeline by evaluating
a simple
`if`
statement. If the
`if`
statement is true, the job is either included
...
...
@@ -1387,7 +1387,7 @@ rules:
-
if
:
$CI_COMMIT_BRANCH && $CI_COMMIT_BEFORE_SHA != '0000000000000000000000000000000000000000'
```
####
#
`rules:changes`
#### `rules:changes`
To determine if jobs should be added to a pipeline,
`rules: changes`
clauses check
the files changed by Git push events.
...
...
@@ -1422,7 +1422,7 @@ In this example:
To implement a rule similar to
[
`except: changes`
](
#onlychangesexceptchanges
)
,
use
`when: never`
.
####
#
`rules:exists`
#### `rules:exists`
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/24021) in GitLab 12.4.
...
...
@@ -1456,7 +1456,7 @@ NOTE: **Note:**
For performance reasons, using
`exists`
with patterns is limited to 10000
checks. After the 10000th check, rules with patterned globs will always match.
####
#
`rules:allow_failure`
#### `rules:allow_failure`
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/30235) in GitLab 12.8.
...
...
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