Fail job if it's configured by parameter
There should be an option to force job failure when running it in reproducer to leave the node by Zuul autohold. See also I0b984b3b166fae2a742b41c0152afe64a94e03d1 Change-Id: I388c17e0a61d4c53a4222510b86b41f645705d21
This commit is contained in:
parent
7acd24cec0
commit
393b2d7502
|
@ -4,3 +4,9 @@
|
|||
- name: Run build containers tasks
|
||||
include_role:
|
||||
name: build-containers
|
||||
|
||||
- name: Fail job if it's configured
|
||||
fail:
|
||||
msg: >-
|
||||
Job has finished successfully, but forced to fail by force_job_failure variable
|
||||
when: force_job_failure|default(false)|bool
|
||||
|
|
|
@ -3,3 +3,9 @@
|
|||
- name: Run image build using the build-images role
|
||||
include_role:
|
||||
name: oooci-build-images
|
||||
|
||||
- name: Fail job if it's configured
|
||||
fail:
|
||||
msg: >-
|
||||
Job has finished successfully, but forced to fail by force_job_failure variable
|
||||
when: force_job_failure|default(false)|bool
|
||||
|
|
Loading…
Reference in New Issue