Send the correct phase when setting the phase from job_complete
This commit is contained in:
parent
07e23a34ed
commit
a8bc4bf697
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
from data.database import BUILD_PHASE
|
||||
|
||||
class BuildJobResult(object):
|
||||
""" Build job result enum """
|
||||
INCOMPLETE = 'incomplete'
|
||||
|
@ -11,3 +13,9 @@ class BuildServerStatus(object):
|
|||
RUNNING = 'running'
|
||||
SHUTDOWN = 'shutting_down'
|
||||
EXCEPTION = 'exception'
|
||||
|
||||
RESULT_PHASES = {
|
||||
BuildJobResult.INCOMPLETE: BUILD_PHASE.INTERNAL_ERROR,
|
||||
BuildJobResult.COMPLETE: BUILD_PHASE.COMPLETE,
|
||||
BuildJobResult.ERROR: BUILD_PHASE.ERROR,
|
||||
}
|
||||
|
|
Reference in a new issue