diff options
-rwxr-xr-x | automated/utils/upload-to-artifactorial.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/automated/utils/upload-to-artifactorial.sh b/automated/utils/upload-to-artifactorial.sh index af501bb..72e77bb 100755 --- a/automated/utils/upload-to-artifactorial.sh +++ b/automated/utils/upload-to-artifactorial.sh @@ -34,7 +34,9 @@ if which lava-test-reference; then fi if [ -z "${ARTIFACTORIAL_TOKEN}" ]; then - return=$(curl -F "path=@${ATTACHMENT}" "${ARTIFACTORIAL_URL}") + echo "WARNING: ARTIFACTORIAL_TOKEN is empty! File uploading skipped." + echo "test-attachment skip" | tee -a "${RESULT_FILE}" + exit 0 else return=$(curl -F "path=@${ATTACHMENT}" -F "token=${ARTIFACTORIAL_TOKEN}" "${ARTIFACTORIAL_URL}") fi |