diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-05-10 20:03:03 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-05-12 11:44:33 +0000 |
commit | e05458bb602ec1043c2749c3e72d5b6607ac4dc4 (patch) | |
tree | 4e1b16f674cd049f38d0a403ec5e52ad2fa7e755 /automated/utils | |
parent | b63057fc06a0f434654240857604505af94ee088 (diff) |
utils: skip file uploading on empty token
Change-Id: Ib6a4dc1be433b161d665ddcf07d1eb8c3382ca9f
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/utils')
-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 |