]> git.lttng.org Git - lttng-ci.git/commitdiff
jjb: Increase details output during image building
authorKienan Stewart <kstewart@efficios.com>
Mon, 25 Nov 2024 20:29:45 +0000 (15:29 -0500)
committerKienan Stewart <kstewart@efficios.com>
Tue, 26 Nov 2024 18:50:33 +0000 (13:50 -0500)
It can be unclear what is going wrong without the raw output.

Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Change-Id: Ia55bfb46ac7f69fa50ecf0b38fdec75f6a3fd6c2

pipelines/images/imagebuild.sh

index bd7ee41a78aeabf7131ecc6e6b10c5a1176d656b..59430358dc4e834066340fafdfcf27abdc069815 100644 (file)
@@ -189,6 +189,7 @@ cat > fake-inventory <<EOF
 [${PROFILE/-/_}]
 ${INSTANCE_IP}
 EOF
+cat fake-inventory
 CLEANUP+=(
     "rm -f $(pwd)/fake-inventory"
 )
@@ -206,9 +207,11 @@ LANG=C ANSIBLE_STRATEGY=linear ansible-playbook \
 incus stop "${INSTANCE_NAME}"
 
 # Publish
-if FINGERPRINT=$(incus publish "${INSTANCE_NAME}" 2>&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
 
This page took 0.027878 seconds and 4 git commands to generate.