File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ setup() {
6161 export KUBE_GIT_VERSION
6262 echo " using KUBE_GIT_VERSION=${KUBE_GIT_VERSION} "
6363
64+ # allow both TEST_WINDOWS and WINDOWS for backwards compatibility.
65+ export TEST_WINDOWS=" ${TEST_WINDOWS:- ${WINDOWS:- } } "
66+
6467 # get the latest ci version for a particular release so that kubeadm is
6568 # able to pull existing images before being replaced by custom images
6669 major=" $( echo " ${KUBE_GIT_VERSION} " | ${GREP_BINARY} -Po " (?<=v)[0-9]+" ) "
@@ -113,7 +116,7 @@ main() {
113116 az storage blob upload --overwrite --container-name " ${JOB_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/linux/amd64/${BINARY} " --name " ${KUBE_GIT_VERSION} /bin/linux/amd64/${BINARY} "
114117 done
115118
116- if [[ " ${WINDOWS :- } " == " true" ]]; then
119+ if [[ " ${TEST_WINDOWS :- } " == " true" ]]; then
117120 echo " Building Kubernetes Windows binaries"
118121
119122 for BINARY in " ${WINDOWS_BINARIES[@]} " ; do
@@ -141,7 +144,7 @@ can_reuse_artifacts() {
141144 fi
142145 done
143146
144- if [[ " ${WINDOWS :- } " == " true" ]]; then
147+ if [[ " ${TEST_WINDOWS :- } " == " true" ]]; then
145148 for BINARY in " ${WINDOWS_BINARIES[@]} " ; do
146149 if [[ " $( az storage blob exists --container-name " ${JOB_NAME} " --name " ${KUBE_GIT_VERSION} /bin/windows/amd64/${BINARY} .exe" --query exists) " == " false" ]]; then
147150 echo " false" && return
You can’t perform that action at this time.
0 commit comments