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
43b3865b
Commit
43b3865b
authored
Nov 21, 2019
by
drew cimino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configuration reference for workflow:rules
parent
09c4b994
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+25
-0
No files found.
doc/ci/yaml/README.md
View file @
43b3865b
...
@@ -3391,6 +3391,31 @@ variables:
...
@@ -3391,6 +3391,31 @@ variables:
You can set it globally or per-job in the
[
`variables`
](
#variables
)
section.
You can set it globally or per-job in the
[
`variables`
](
#variables
)
section.
### `workflow:rules`
> Introduced in Gitlab 12.6
The top-level
`workflow:`
key applies to the entirety of a Pipeline being
configured by your CI configuration file. It currently accepts a single key
`rules:`
that operates in the
[
exact same way
](
#rules
)
as
`job:rules`
; a list
of rules is evaluated until a single one of them is matched, and that rule
provides dynamically-selected configuration.
Currently the only configuration option allowed for
`workflow:rules`
is
`when:`
-
`when:`
may be set to
`always`
or
`never`
-
If not provided, the default value is
`always`
```
yaml
workflow
:
rules
:
-
if
:
$CI_COMMIT_REF_NAME =~ /-wip$/
when
:
never
-
if
:
$CI_COMMIT_TAG
when
:
never
-
when
:
always
```
## Deprecated parameters
## Deprecated parameters
The following parameters are deprecated.
The following parameters are deprecated.
...
...
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