Merge remote-tracking branch 'origin/topic/jsiwek/skip-ci-benchmark'

* origin/topic/jsiwek/skip-ci-benchmark:
  Improve CI benchmark script's error handling/messaging
This commit is contained in:
Jon Siwek 2020-09-02 20:51:13 -07:00
commit 48e2445600
4 changed files with 11 additions and 2 deletions

View file

@ -12,6 +12,11 @@ if [ "${CIRRUS_USER_PERMISSION}" != "admin" -a "${CIRRUS_USER_PERMISSION}" != "w
exit 0
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"
# Generate an md5 hash of the build file. We can do this here because the path to the