gitlab-ci: ensure coverity job runs weekly

Currently, the condition is not strict enough, and so the job runs every time a scheduled task is triggered - which is currently daily.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1979
This commit is contained in:
Jan Vaclav 2024-06-27 13:23:15 +02:00
parent c9327b2e8b
commit 593b4e01a4
2 changed files with 7 additions and 7 deletions

View file

@ -60,11 +60,11 @@ variables:
#
# This is done by running `ci-fairy generate-template` and possibly bumping
# ".default_tag".
ALPINE_TAG: 'tag-f0b648c04526'
CENTOS_TAG: 'tag-c2d500e0391f'
DEBIAN_TAG: 'tag-7687baa06688'
FEDORA_TAG: 'tag-c2d500e0391f'
UBUNTU_TAG: 'tag-7687baa06688'
ALPINE_TAG: 'tag-21203a6f1da4'
CENTOS_TAG: 'tag-15f80c990684'
DEBIAN_TAG: 'tag-1ce75d18715e'
FEDORA_TAG: 'tag-15f80c990684'
UBUNTU_TAG: 'tag-1ce75d18715e'
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
@ -649,7 +649,7 @@ coverity:
stage: coverity
needs: []
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly"
script:
- dnf install -y curl
- BUILD_TYPE=meson CC=gcc CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh

View file

@ -258,7 +258,7 @@ coverity:
stage: coverity
needs: []
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly"
script:
- dnf install -y curl
- BUILD_TYPE=meson CC=gcc CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh