diff --git a/playbooks/tripleo-buildcontainers/run.yaml b/playbooks/tripleo-buildcontainers/run.yaml index fb79517e9..308c7185d 100644 --- a/playbooks/tripleo-buildcontainers/run.yaml +++ b/playbooks/tripleo-buildcontainers/run.yaml @@ -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 diff --git a/playbooks/tripleo-buildimages/run-v3.yaml b/playbooks/tripleo-buildimages/run-v3.yaml index d1cfe97ae..09a394834 100644 --- a/playbooks/tripleo-buildimages/run-v3.yaml +++ b/playbooks/tripleo-buildimages/run-v3.yaml @@ -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