From 800682c9bb8a2fd3285b589a3b1469759c188be9 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 12 Nov 2020 19:35:49 +0100 Subject: [PATCH] builder: upload the compose json Upload the final compose status as JSON, so it can be inspected, which could be especially handy if multiple image requests were made and only one of them failed, to quickly pin down the one that failed, without having to go through all the logs. --- plugins/builder/osbuild.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/builder/osbuild.py b/plugins/builder/osbuild.py index 8e1294a..21f6f29 100644 --- a/plugins/builder/osbuild.py +++ b/plugins/builder/osbuild.py @@ -405,6 +405,7 @@ class OSBuildImage(BaseTaskHandler): self.logger.debug("Compose finished: %s", str(status.as_dict())) self.logger.info("Compose result: %s", status.status) + self.upload_json(status.as_dict(), "compose-status") self.attach_logs(cid, ireqs) if not status.is_success: