gsutil: Remove trailing slashes, rsync instead of cp

pull/5620/head
tstromberg 2019-10-14 09:06:31 -07:00
parent 7dd3a4db77
commit 47d558123d
1 changed files with 6 additions and 1 deletions

View File

@ -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}"