Don't treat currently-running builds as non-passing, just get the last completed status.

master
Simon Quigley 4 years ago
parent 05600309e6
commit 0792e9d9f1

@ -71,7 +71,8 @@ class JenkinsModule:
# The goal of this is to identify problematic jobs, and jobs with # The goal of this is to identify problematic jobs, and jobs with
# no existing builds aren't necessarily problematic (yet) # no existing builds aren't necessarily problematic (yet)
try: try:
status = val.get_last_build().get_status() status = val.get_last_build().get_status() or \
val.get_last_completed_build().get_status()
except NoBuildData: except NoBuildData:
status = "SUCCESS" status = "SUCCESS"

Loading…
Cancel
Save