From: Kienan Stewart Date: Mon, 25 Nov 2024 20:29:45 +0000 (-0500) Subject: jjb: Increase details output during image building X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2d9ff69893ecb1854d888cf1c80a2f053d46e6b2;p=lttng-ci.git 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 --- 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