builder: raise an exception on compose failures

Instead of a normal task return with a result dictionary, raise an
exception when the compose failed.
This commit is contained in:
Christian Kellner 2020-09-18 17:32:34 +02:00
parent c70ec02fba
commit f2f34a3b76

View file

@ -322,6 +322,9 @@ class OSBuildImage(BaseTaskHandler):
self.logger.debug("Compose finished: %s", str(status))
self.logger.info("Compose result: %s", status.status)
if not status.is_success:
raise koji.BuildError(f"Compose failed (id: {cid})")
result = {
"status": status.status,
"composer": {