Adding in cancel for a build that is building.
This commit is contained in:
parent
e57eece6c1
commit
fd7c566d31
7 changed files with 120 additions and 16 deletions
|
@ -246,6 +246,10 @@ class BuildComponent(BaseComponent):
|
|||
try:
|
||||
if self._build_status.set_phase(phase, log_data.get('status_data')):
|
||||
logger.debug('Build %s has entered a new phase: %s', self.builder_realm, phase)
|
||||
elif self._current_job.repo_build.phase == BUILD_PHASE.CANCELLED:
|
||||
build_id = self._current_job.repo_build.uuid
|
||||
logger.debug('Trying to move cancelled build into phase: %s with id: %s', phase, build_id)
|
||||
return False
|
||||
except InvalidRepositoryBuildException:
|
||||
build_id = self._current_job.repo_build.uuid
|
||||
logger.info('Build %s was not found; repo was probably deleted', build_id)
|
||||
|
|
Reference in a new issue