Improve CI benchmark script's error handling/messaging

This commit is contained in:
Jon Siwek 2020-08-31 16:08:00 -07:00
parent 5ab20dfcb9
commit 73d372f151

View file

@ -12,6 +12,11 @@ if [ "${CIRRUS_USER_PERMISSION}" != "admin" -a "${CIRRUS_USER_PERMISSION}" != "w
exit 0 exit 0
fi fi
if [ "${CIRRUS_REPO_FULL_NAME}" != "zeek/zeek" ]; then
echo "Benchmarks skipped for non-zeek repo"
exit 0
fi
BUILD_URL="https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/${CIRRUS_TASK_NAME}/upload_binary/build.tgz" BUILD_URL="https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/${CIRRUS_TASK_NAME}/upload_binary/build.tgz"
# Generate an md5 hash of the build file. We can do this here because the path to the # Generate an md5 hash of the build file. We can do this here because the path to the