Skip to content

Commit cf86a39

Browse files
authored
write metadata.json file during periodic windows capz e2e test runs (#516)
Signed-off-by: Mark Rossett <marosset@microsoft.com>
1 parent ffad103 commit cf86a39

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

capz/run-capz-e2e.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ main() {
4545

4646
set_azure_envs
4747

48+
mkdir -p "${ARTIFACTS}"
4849
set_ci_version
4950
IS_PRESUBMIT="$(capz::util::should_build_kubernetes)"
5051
echo "IS_PRESUBMIT=$IS_PRESUBMIT"
@@ -599,6 +600,12 @@ set_ci_version() {
599600

600601
log "Selected Kubernetes version:"
601602
log "$KUBERNETES_VERSION"
603+
604+
# write metadata.json to artifacts directory
605+
# for testgrid to pick up the version.
606+
cat <<EOF >"${ARTIFACTS}/metadata.json"
607+
{"revision":"${KUBERNETES_VERSION}"}
608+
EOF
602609
fi
603610
}
604611

0 commit comments

Comments
 (0)