From 47d558123da4efeec3eed9a8ba1521a4c04bcd6b Mon Sep 17 00:00:00 2001 From: tstromberg Date: Mon, 14 Oct 2019 09:06:31 -0700 Subject: [PATCH] gsutil: Remove trailing slashes, rsync instead of cp --- hack/jenkins/minikube_cross_build_and_upload.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hack/jenkins/minikube_cross_build_and_upload.sh b/hack/jenkins/minikube_cross_build_and_upload.sh index eb510d578a..8137cf5934 100755 --- a/hack/jenkins/minikube_cross_build_and_upload.sh +++ b/hack/jenkins/minikube_cross_build_and_upload.sh @@ -63,4 +63,9 @@ cp -r test/integration/testdata out/ # Don't upload the buildroot artifacts if they exist rm -r out/buildroot || true -gsutil -m cp -r out/ "gs://${bucket}/${ghprbPullId}/" +# At this point, the out directory contains the jenkins scripts (populated by jenkins), +# testdata, and our build output. Push the changes to GCS so that worker nodes can re-use them. + +# -d: delete remote files that don't exist (removed test files, for instance) +# -J: gzip compression +gsutil -m rsync -dJ out "gs://${bucket}/${ghprbPullId}"