mirror of
https://github.com/lubuntu-team/metrics.git
synced 2025-03-12 15:41:09 +00:00
Don't treat currently-running builds as non-passing, just get the last completed status.
This commit is contained in:
parent
05600309e6
commit
0792e9d9f1
@ -71,7 +71,8 @@ class JenkinsModule:
|
||||
# The goal of this is to identify problematic jobs, and jobs with
|
||||
# no existing builds aren't necessarily problematic (yet)
|
||||
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:
|
||||
status = "SUCCESS"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user