Always run download_packages() after executing buildpackage SLS

By restricting this function call to when the script is successful, we
end up losing the log file from buildpackage.py when it fails, making it next to
impossible to troubleshoot. This commit makes jenkins retrieve at least
the log file, no matter what happens.
This commit is contained in:
Erik Johnson 2014-12-02 17:45:57 -06:00
parent 712a9f4a7d
commit 5c864fa003

View file

@ -766,9 +766,8 @@ def run(opts):
print(stderr)
sys.stderr.flush()
# Download packages only if the script ran and was successful
if 'Build complete' in stdout:
download_packages(opts)
# Grab packages and log file (or just log file if build failed)
download_packages(opts)
if opts.download_remote_reports:
# Download unittest reports