From baa2c34dcb9cdd71107a8e0ee9545f3e65ae4a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aslak=20Helles=C3=B8y?= Date: Tue, 13 Oct 2020 14:19:05 +0100 Subject: [PATCH] Do not exit with 1 if report not published --- scripts/publish-cucumber-report | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/publish-cucumber-report b/scripts/publish-cucumber-report index 0267c4e21a3..053eabe688f 100755 --- a/scripts/publish-cucumber-report +++ b/scripts/publish-cucumber-report @@ -38,12 +38,8 @@ else fi upload_url=$(echo "${response}" | grep -i 'Location:' | awk '{print $2}' | tr -d "\r") -if [ -z "${upload_url}" ]; then - echo "${response}" - echo - echo_error "Error: could not find the location header in the response" - exit 1 +if [ ! -z "${upload_url}" ]; then + curl -X PUT "${upload_url}" --upload-file "$1" fi -curl -X PUT "${upload_url}" --upload-file "$1" # Only print the banner which starts with a "┌" character echo "${response}" | sed -n '/┌/,$p'