Skip to content

Commit 1594aa1

Browse files
authored
Wpb 26513 dump build version info (#920)
* fix: WPB-26513 Dump version information post creating the artifacts on the stdout * fix: WPB-26513 remove the test exit debug command * add: WPB-26513 fix minor file-name issue
1 parent 63d9276 commit 1594aa1

5 files changed

Lines changed: 31 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added: Dump version information post creating the artifacts on the stdout

offline/default-build/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,16 @@ done
116116

117117
# Create the tar archive with relative paths
118118
tar czf "$OUTPUT_TAR" "${ITEMS_TO_ARCHIVE[@]}"
119+
120+
# Dumping details of versions for the build and packed
121+
echo "Dump of versions/helm_image_tree.json"
122+
cat "${OUTPUT_DIR}/versions/helm_image_tree.json"
123+
124+
echo "Dump of versions/containers_system_images.json"
125+
cat "${OUTPUT_DIR}/versions/containers_system_images.json"
126+
127+
echo "Dump of versions/wire-binaries.json"
128+
cat "${OUTPUT_DIR}/versions/wire-binaries.json"
129+
130+
echo "Dump of wire-builds used"
131+
cat "${OUTPUT_DIR}/build.json"

offline/demo-build/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,10 @@ done
8383

8484
# Create the tar archive with relative paths
8585
tar czf "$OUTPUT_TAR" "${ITEMS_TO_ARCHIVE[@]}"
86+
87+
# Dumping details of versions for the build and packed
88+
echo "Dump of versions/helm_image_tree.json"
89+
cat "${OUTPUT_DIR}/versions/helm_image_tree.json"
90+
91+
echo "Dump of wire-builds used"
92+
cat "${OUTPUT_DIR}/build.json"

offline/min-build/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,10 @@ done
9494

9595
# Create the tar archive with relative paths
9696
tar czf "$OUTPUT_TAR" "${ITEMS_TO_ARCHIVE[@]}"
97+
98+
# Dumping details of versions for the build and packed
99+
echo "Dump of versions/helm_image_tree.json"
100+
cat "${OUTPUT_DIR}/versions/helm_image_tree.json"
101+
102+
echo "Dump of wire-builds used"
103+
cat "${OUTPUT_DIR}/build.json"

offline/tasks/proc_pull_charts.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ echo "Excluding following charts from the release: $HELM_CHART_EXCLUDE_LIST"
3636
wire_build_chart_release () {
3737

3838
wire_build="$1"
39-
curl "$wire_build" | jq -r --argjson HELM_CHART_EXCLUDE_LIST "$HELM_CHART_EXCLUDE_LIST" '
39+
curl "$wire_build" -o "${OUTPUT_DIR}/build.json"
40+
jq -r --argjson HELM_CHART_EXCLUDE_LIST "$HELM_CHART_EXCLUDE_LIST" '
4041
.helmCharts
4142
| with_entries(select(.key as $k | $HELM_CHART_EXCLUDE_LIST | index($k) | not))
4243
| to_entries
4344
| map("\(.key) \(.value.repo) \(.value.version)")
4445
| join("\n")
45-
'
46+
' "${OUTPUT_DIR}/build.json"
4647
}
4748

4849
# pull_charts() accepts charts in format

0 commit comments

Comments
 (0)