|
|
@ -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 |
|
|
|
|
|
|
|