From 73d372f151467f4e2dd33eecee373f017e294c46 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Mon, 31 Aug 2020 16:08:00 -0700 Subject: [PATCH] Improve CI benchmark script's error handling/messaging --- ci/benchmark.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/benchmark.sh b/ci/benchmark.sh index 5440e9717a..7823915f63 100755 --- a/ci/benchmark.sh +++ b/ci/benchmark.sh @@ -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