Skip to content

Commit e47bb3c

Browse files
author
laveen
committed
Debug
1 parent cb177eb commit e47bb3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/cloud-build/check_running_build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ while [[ "$#" -gt 0 ]]; do
3030
done
3131

3232
if [ -z "$TRIGGER_BUILD_CONFIG_PATH" ]; then
33+
echo "Error: <trigger_build_config_path> is not provided."
34+
echo "--- DEBUG: Available Substitutions ---"
35+
if [ -n "$BUILD_ID" ]; then
36+
gcloud builds describe "$BUILD_ID" --format='value(substitutions)' || echo "gcloud describe failed"
37+
else
38+
echo "BUILD_ID env var is missing. Cannot describe build."
39+
fi
40+
echo "---------------------------------------"
3341
echo "Usage: $0 [--config <config_path>] <trigger_build_config_path>"
3442
exit 1
3543
fi

0 commit comments

Comments
 (0)