]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run Coverity Scan only when specific variables are present
authorMichal Nowak <mnowak@isc.org>
Wed, 12 Feb 2020 15:00:32 +0000 (15:00 +0000)
committerMichal Nowak <mnowak@isc.org>
Wed, 12 Feb 2020 15:00:32 +0000 (15:00 +0000)
Submissions to Coverity Scan should be limited to those originated from
release branches and only from a specific schedule which holds
COVERITY_SCAN_PROJECT_NAME and COVERITY_SCAN_TOKEN variables.

(cherry picked from commit 48530aa21395414b0f9788ea5ab158b2b09ab977)

.gitlab-ci.yml

index edd1f9764011acd066fab54a7615c3c65a8d4c19..25f7c1e7a7c678541e4d0afe77d3cbc2baefcc7c 100644 (file)
@@ -1157,8 +1157,9 @@ build:coverity:sid:amd64:
     expire_in: "1 week"
     when: on_failure
   only:
-    - schedules
-    - web
+    variables:
+      - $COVERITY_SCAN_PROJECT_NAME
+      - $COVERITY_SCAN_TOKEN
   cache:
     key: cov-analysis-linux64-2019.03
     paths: