mirror of
https://github.com/lubuntu-team/metrics.git
synced 2025-05-01 15:41:28 +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
|
# 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…
x
Reference in New Issue
Block a user