Switch build-scheduled to an official build phase.
This commit is contained in:
parent
884fedd229
commit
79f1181a63
2 changed files with 2 additions and 1 deletions
|
@ -182,7 +182,7 @@ class BuilderServer(object):
|
||||||
if schedule_success:
|
if schedule_success:
|
||||||
logger.debug('Marking build %s as scheduled', build_job.repo_build.uuid)
|
logger.debug('Marking build %s as scheduled', build_job.repo_build.uuid)
|
||||||
status_handler = StatusHandler(self._build_logs, build_job.repo_build.uuid)
|
status_handler = StatusHandler(self._build_logs, build_job.repo_build.uuid)
|
||||||
status_handler.set_phase('build-scheduled')
|
status_handler.set_phase(database.BUILD_PHASE.BUILD_SCHEDULED)
|
||||||
|
|
||||||
self._job_count = self._job_count + 1
|
self._job_count = self._job_count + 1
|
||||||
logger.debug('Build job %s scheduled. Running: %s', build_job.repo_build.uuid,
|
logger.debug('Build job %s scheduled. Running: %s', build_job.repo_build.uuid,
|
||||||
|
|
|
@ -515,6 +515,7 @@ class BUILD_PHASE(object):
|
||||||
""" Build phases enum """
|
""" Build phases enum """
|
||||||
ERROR = 'error'
|
ERROR = 'error'
|
||||||
INTERNAL_ERROR = 'internalerror'
|
INTERNAL_ERROR = 'internalerror'
|
||||||
|
BUILD_SCHEDULED = 'build-scheduled'
|
||||||
UNPACKING = 'unpacking'
|
UNPACKING = 'unpacking'
|
||||||
PULLING = 'pulling'
|
PULLING = 'pulling'
|
||||||
BUILDING = 'building'
|
BUILDING = 'building'
|
||||||
|
|
Reference in a new issue