Invert post build script status logic

We had the logic in the post build script conditions inverted. We
unfortunately need to say onsuccess: False and onfailure: False to make
this run on every job regardless of its build status.

This is because the plugin treats those options as IFFs with onsuccess
being evaluated first. So if onsuccess is set to True then the post
build script will run if and only if the build status was successful.
Similar story for onfailure. If we set them both to false then neither
success nor failure is checked and we should run the script on all
builds.

Change-Id: I70fd948e239e8a5007b0f5813c9d5757a1742abe
This commit is contained in:
Clark Boylan
2014-12-04 10:28:12 -08:00
parent f9be26e8f0
commit 7fd554a3a5

View File

@@ -47,8 +47,11 @@
builders:
- zuul_swift_upload_logs_with_console:
upload_source: '.tox/pep8/log'
onfailure: True
onsuccess: True
# These flags really mean only if on * when
# checked. When both set to false the post script
# should run on every job regardless of status.
onfailure: False
onsuccess: False
- job-template:
name: 'gate-{name}-pylint'