Skip to content

Commit b2686bd

Browse files
committed
cloud build: create work directory
This fixes the following cloud build failure: tests that need to be skipped: CSI_PROW_E2E_SKIP=Disruptive tar: can't change directory to '': No such file or directory Thu Jun 17 17:15:10 UTC 2021 go1.13.5 $ curl --fail --location https://dl.google.com/go/go1.16.linux-amd64.tar.gz ... curl: (23) Failed writing body (0 != 1377) ERROR: installation of Go 1.16 failed ERROR ERROR: build step 0 "gcr.io/k8s-testimages/gcb-docker-gcloud:v20200421-a2bf5f8" failed: step exited with non-zero status: 1 It's necessary because of kubernetes-csi/csi-release-tools@6880b0c
1 parent 5478544 commit b2686bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.cloudbuild.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
# Extract tag-n-hash value from GIT_TAG (form vYYYYMMDD-tag-n-hash) for REV value.
66
REV=v$(echo "$GIT_TAG" | cut -f3- -d 'v')
77

8+
# This creates the CSI_PROW_WORK directory that is needed by run_with_go.
9+
ensure_paths
10+
811
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make build REV="${REV}"
912
cp bin/csi-proxy.exe bin/csi-proxy-"${PULL_BASE_REF}".exe

0 commit comments

Comments
 (0)