From 216fd3ff9a912ecf9d9931dfbae576bed85d0a2f Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 19 Jul 2020 03:20:33 +0100 Subject: [PATCH] Fix coverity pipeline The original test didn't work if the tgz was not already in the runner cache. This new test will fail the check if the file is missing instead of erroring the command. --- .gitlab/coverity.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab/coverity.yml b/.gitlab/coverity.yml index c5858bd402..6d9d59408a 100644 --- a/.gitlab/coverity.yml +++ b/.gitlab/coverity.yml @@ -6,7 +6,8 @@ --form project=$COVERITY_SCAN_PROJECT_NAME \ --form token=$COVERITY_SCAN_TOKEN \ --form md5=1 - test "$(md5sum cov-analysis-linux64.tgz | awk '{ print $1 }')" = "$(cat cov-analysis-linux64.md5)" || ( + echo " *cov-analysis-linux64.tgz" >> cov-analysis-linux64.md5 + test "$(md5sum --ignore-missing -c cov-analysis-linux64.md5)" || ( echo "Downloading new Coverity Scan version" curl --output cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64 \ --form project=$COVERITY_SCAN_PROJECT_NAME \