Make gsutil command don't fail if dir doesn't exist (#47394)

This commit is contained in:
Dimitris Sotirakis
2022-04-07 09:30:09 +03:00
committed by GitHub
parent 015a31644c
commit 0845ba1abb
2 changed files with 8 additions and 8 deletions

View File

@@ -273,7 +273,7 @@ def store_storybook_step(edition, ver_mode, trigger=None):
'printenv GCP_KEY | base64 -d > /tmp/gcpkey.json',
'gcloud auth activate-service-account --key-file=/tmp/gcpkey.json',
] + [
'gsutil -m rm -r gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{} && gsutil -m cp -r ./packages/grafana-ui/dist/storybook/* gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{}'.format(
'gsutil -m rm -r gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{} || true && gsutil -m cp -r ./packages/grafana-ui/dist/storybook/* gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{}'.format(
c, c)
for c in channels
])