From 2d9ff69893ecb1854d888cf1c80a2f053d46e6b2 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 25 Nov 2024 15:29:45 -0500 Subject: [PATCH] jjb: Increase details output during image building It can be unclear what is going wrong without the raw output. Signed-off-by: Kienan Stewart Change-Id: Ia55bfb46ac7f69fa50ecf0b38fdec75f6a3fd6c2 --- pipelines/images/imagebuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipelines/images/imagebuild.sh b/pipelines/images/imagebuild.sh index bd7ee41..5943035 100644 --- a/pipelines/images/imagebuild.sh +++ b/pipelines/images/imagebuild.sh @@ -189,6 +189,7 @@ cat > fake-inventory <&1 | grep -E -o '[A-Fa-f0-9]{64}') ; then +PUBLISH_OUTPUT=$(incus publish "${INSTANCE_NAME}" 2>&1) +if FINGERPRINT=$(echo "${PUBLISH_OUTPUT}" | grep -E -o '[A-Fa-f0-9]{64}') ; then echo "Published instance with fingerprint '${FINGERPRINT}'" else + echo "${PUBLISH_OUTPUT}" fail 1 "No fingerprint for published instance" fi -- 2.39.5