Validate downloaded Coverity tool checksum 15/89715/3
authorArtem Naluzhnyy <A.Naluzhnyy@samsung.com>
Tue, 11 Jun 2019 15:19:40 +0000 (17:19 +0200)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 12 Jun 2019 00:49:56 +0000 (00:49 +0000)
Issue-ID: CIMAN-260
Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com>
Change-Id: I73dae5c4c5bd3dd73957809b4265009b529ebca0

shell/maven-coverity.sh

index 76ba423..e319b06 100644 (file)
@@ -57,6 +57,20 @@ curl \
   --output 'coverity_tool.tgz' \
   'https://scan.coverity.com/download/linux64'
 
+curl \
+  --verbose \
+  --silent \
+  --show-error \
+  --fail \
+  --form "project=${COVERITY_PROJECT_NAME}" \
+  --form "token=${COVERITY_TOKEN}" \
+  --form 'md5=1' \
+  --output 'coverity_tool.md5' \
+  'https://scan.coverity.com/download/linux64'
+
+echo -n ' coverity_tool.tgz' >> 'coverity_tool.md5'
+md5sum --check 'coverity_tool.md5'
+
 tar \
   --extract \
   --gunzip \