Skip to content

Commit 5c864fa

Browse files
committed
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.
1 parent 712a9f4 commit 5c864fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/jenkins.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,8 @@ def run(opts):
766766
print(stderr)
767767
sys.stderr.flush()
768768

769-
# Download packages only if the script ran and was successful
770-
if 'Build complete' in stdout:
771-
download_packages(opts)
769+
# Grab packages and log file (or just log file if build failed)
770+
download_packages(opts)
772771

773772
if opts.download_remote_reports:
774773
# Download unittest reports

0 commit comments

Comments
 (0)