Fix version string included in Coverity submission

This commit is contained in:
Ian McInerney 2020-07-22 23:48:16 +01:00
parent 86c9adbcba
commit 7067e42da7
1 changed files with 3 additions and 2 deletions

View File

@ -24,12 +24,13 @@
echo "Creating tar file of scan results"
tar cfz cov-int.tar.gz cov-int
echo "Submitting scan results"
export KICAD_VERSION=$(sed 's/[()]//g' kicad_build_version.txt)
curl -v https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME \
--form token=$COVERITY_SCAN_TOKEN \
--form email=$GITLAB_USER_EMAIL \
--form file=@cov-int.tar.gz \
--form version="`cat kicad_build_version.txt`" \
--form description="`cat kicad_build_version.txt` / $CI_COMMIT_TITLE" 2>&1 \
--form version="$KICAD_VERSION" \
--form description="$KICAD_VERSION / $CI_COMMIT_TITLE" 2>&1 \
| tee curl-response.txt
grep -q 'Build successfully submitted' curl-response.txt