[infra] GSB: ignore failing "gsutil rm -rf" step. (#3412)

This commit is contained in:
Max Moroz 2020-02-19 10:43:21 -08:00 committed by GitHub
parent 8faac99098
commit 6cd7db7758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

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