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
a5204747
Commit
a5204747
authored
Feb 06, 2020
by
Ben Prescott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rules difference for other mentions of allow_failure
parent
37576eaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+9
-4
No files found.
doc/ci/yaml/README.md
View file @
a5204747
...
...
@@ -1264,7 +1264,9 @@ osx job:
`allow_failure`
allows a job to fail without impacting the rest of the CI
suite.
The default value is
`false`
, except for
[
manual
](
#whenmanual
)
jobs.
The default value is
`false`
, except for
[
manual
](
#whenmanual
)
jobs using the
`when: manual`
syntax, unless using
[
`rules:`
](
#rules
)
syntax, where all jobs
default to false,
*including*
`when: manual`
jobs.
When enabled and the job fails, the job will show an orange warning in the UI.
However, the logical flow of the pipeline will consider the job a
...
...
@@ -1379,14 +1381,17 @@ manual action by clicking a _play_ button.
When a pipeline is blocked, it will not be merged if Merge When Pipeline Succeeds
is set. Blocked pipelines also do have a special status, called _manual_.
Manual actions are non-blocking by default. If you want to make manual action
blocking, it is necessary to add
`allow_failure: false`
to the job's definition
in
`.gitlab-ci.yml`
.
When the
`when:manual`
syntax is used, manual actions are non-blocking by
default. If you want to make manual action blocking, it is necessary to add
`allow_failure: false`
to the job's definition
in
`.gitlab-ci.yml`
.
Optional manual actions have
`allow_failure: true`
set by default and their
Statuses do not contribute to the overall pipeline status. So, if a manual
action fails, the pipeline will eventually succeed.
NOTE:
**Note:**
When using
[
`rules:`
](
#rules
)
,
`allow_failure`
defaults to
`false`
, including for manual jobs.
Manual actions are considered to be write actions, so permissions for
[
protected branches
](
../../user/project/protected_branches.md
)
are used when
a user wants to trigger an action. In other words, in order to trigger a manual
...
...
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