Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#3507 from marosset/az-storage-outp…
Browse files Browse the repository at this point in the history
…ut-tsv

Specifying --output type for az storage calls in ci-build-kubernetes.sh
  • Loading branch information
k8s-ci-robot authored May 1, 2023
2 parents de72779 + 6026e63 commit 4c97dde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci-build-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ setup() {
}

main() {
if [[ "$(az storage container exists --name "${JOB_NAME}" --query exists)" == "false" ]]; then
if [[ "$(az storage container exists --name "${JOB_NAME}" --query exists --output tsv)" == "false" ]]; then
echo "Creating ${JOB_NAME} storage container"
az storage container create --name "${JOB_NAME}" > /dev/null
az storage container set-permission --name "${JOB_NAME}" --public-access container > /dev/null
Expand Down Expand Up @@ -139,14 +139,14 @@ can_reuse_artifacts() {
done

for BINARY in "${BINARIES[@]}"; do
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/linux/amd64/${BINARY}" --query exists)" == "false" ]]; then
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/linux/amd64/${BINARY}" --query exists --output tsv)" == "false" ]]; then
echo "false" && return
fi
done

if [[ "${TEST_WINDOWS:-}" == "true" ]]; then
for BINARY in "${WINDOWS_BINARIES[@]}"; do
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/windows/amd64/${BINARY}.exe" --query exists)" == "false" ]]; then
if [[ "$(az storage blob exists --container-name "${JOB_NAME}" --name "${KUBE_GIT_VERSION}/bin/windows/amd64/${BINARY}.exe" --query exists --output tsv)" == "false" ]]; then
echo "false" && return
fi
done
Expand Down

0 comments on commit 4c97dde

Please sign in to comment.