aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar Max Moroz <mmoroz@chromium.org>2020-02-19 10:43:21 -0800
committerGravatar GitHub <noreply@github.com>2020-02-19 10:43:21 -0800
commit6cd7db775899c2ae35402427b14c60c77769572d (patch)
treee1fa58950f722385bd6c4e34324ae7c3a22a5cb4 /infra
parent8faac99098ad28db35d12376e602294772c006c7 (diff)
[infra] GSB: ignore failing "gsutil rm -rf" step. (#3412)
Diffstat (limited to 'infra')
-rw-r--r--infra/gcb/build_lib.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/infra/gcb/build_lib.py b/infra/gcb/build_lib.py
index f4878369..e70ec0fb 100644
--- a/infra/gcb/build_lib.py
+++ b/infra/gcb/build_lib.py
@@ -158,11 +158,10 @@ def gsutil_rm_rf_step(url):
"""Returns a GCB step to recursively delete the object with given GCS url."""
step = {
'name': 'gcr.io/cloud-builders/gsutil',
+ 'entrypoint': 'sh',
'args': [
- '-m',
- 'rm',
- '-rf',
- url,
+ '-c',
+ 'gsutil -m rm -rf %s || exit 0' % url,
],
}
return step