jjb: infra: bifrost-verity: Ignore missing landing page 89/27689/1
authorMarkos Chandras <mchandras@suse.de>
Sat, 28 Jan 2017 00:26:36 +0000 (00:26 +0000)
committerMarkos Chandras <mchandras@suse.de>
Sat, 28 Jan 2017 00:27:18 +0000 (00:27 +0000)
if this a new build, there is no landing page to remove and
'gsutil rm' will return false breaking the build. Ignore such
failures.

Change-Id: If5969b06b7a65a8e36abda57e8cb75e8684a716a
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/infra/bifrost-verify.sh

index bb47848..94c7dac 100755 (executable)
@@ -22,7 +22,7 @@ function upload_logs() {
     # stale information.
     # TODO: Maybe cleanup the entire $BIFROST_GS_URL directory
     # before we upload the new data.
-    gsutil -q rm ${BIFROST_GS_URL}/index.html
+    gsutil -q rm ${BIFROST_GS_URL}/index.html || true
 
     if [[ -d ${WORKSPACE}/logs ]]; then
         echo "Uploading collected bifrost logs to ${BIFROST_LOG_URL}"