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
43f0e359
Commit
43f0e359
authored
Dec 20, 2021
by
Marcel Amirault
Committed by
Kati Paizee
Dec 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add note about using when with rules in 14.6
parent
dffaa093
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+4
-2
No files found.
doc/ci/yaml/index.md
View file @
43f0e359
...
...
@@ -3066,8 +3066,10 @@ job:
-
If a rule matches and has no
`when`
defined, the rule uses the
`when`
defined for the job, which defaults to
`on_success`
if not defined.
-
You can define
`when`
once per rule, or once at the job-level, which applies to
all rules. You can't mix
`when`
at the job-level with
`when`
in rules.
-
In GitLab 14.5 and earlier, you can define
`when`
once per rule, or once at the job-level,
which applies to all rules. You can't mix
`when`
at the job-level with
`when`
in rules.
-
In GitLab 14.6 and later, you can
[
mix `when` at the job-level with `when` in rules
](
https://gitlab.com/gitlab-org/gitlab/-/issues/219437
)
.
`when`
configuration in
`rules`
takes precedence over
`when`
at the job-level.
-
Unlike variables in
[
`script`
](
../variables/index.md#use-cicd-variables-in-job-scripts
)
sections, variables in rules expressions are always formatted as
`$VARIABLE`
.
-
You can use
`rules:if`
with
`include`
to
[
conditionally include other configuration files
](
includes.md#use-rules-with-include
)
.
...
...
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