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.
This commit is contained in:
parent
ae45c08ce4
commit
216fd3ff9a
|
@ -6,7 +6,8 @@
|
||||||
--form project=$COVERITY_SCAN_PROJECT_NAME \
|
--form project=$COVERITY_SCAN_PROJECT_NAME \
|
||||||
--form token=$COVERITY_SCAN_TOKEN \
|
--form token=$COVERITY_SCAN_TOKEN \
|
||||||
--form md5=1
|
--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"
|
echo "Downloading new Coverity Scan version"
|
||||||
curl --output cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64 \
|
curl --output cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64 \
|
||||||
--form project=$COVERITY_SCAN_PROJECT_NAME \
|
--form project=$COVERITY_SCAN_PROJECT_NAME \
|
||||||
|
|
Loading…
Reference in New Issue