Skip to content

Commit

Permalink
set error
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssa1303 committed Dec 30, 2024
1 parent c670e42 commit 6bdd3f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion steps/collect-telescope-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ parameters:
type: object
steps:
- script: |
set -e
if [ -z "$CLOUD_INFO" ]; then
CLOUD_INFO=$(jq -n -c \
--arg cloud "$CLOUD" \
Expand All @@ -37,6 +39,7 @@ steps:
--arg engine "$ENGINE" \
--arg topology "$TOPOLOGY" \
--arg engine_input "$(echo $ENGINE_INPUT | jq -r '.')" \
--arg cloud_info "$CLOUD_INFO" \
--arg pipeline_id "$(System.DefinitionId)" \
--arg pipeline_name "$(Build.DefinitionName)" \
--arg cron_schedule_display_name "$BUILD_CRONSCHEDULE_DISPLAYNAME" \
Expand Down Expand Up @@ -65,7 +68,7 @@ steps:
engine_input: $engine_input,
byo_resources: $byo_resources
},
cloud_info: $CLOUD_INFO
cloud_info: $cloud_info
}' | jq 'with_entries(select(.value != null and .value != ""))' | jq -c .)
echo -n "Telescope Metadata: " && echo "$telescope_metadata" | jq .
echo "$telescope_metadata" > $TEST_RESULTS_DIR/telescope_metadata.json
Expand Down

0 comments on commit 6bdd3f6

Please sign in to comment.