From 04a60beb2578b6e8627c9f20306ab036ce2905f4 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Wed, 12 Feb 2020 14:58:10 +0000 Subject: [PATCH] Run Coverity Scan only when specific variables are present 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5098d83f2b..7e321eaa70 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1137,8 +1137,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: