mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
712a9f4a7d
commit
5c864fa003
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue