From 61d75a11ef58fb03734057c575a3f9bcaecaf1e2 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 20 Jan 2025 14:05:52 +0100 Subject: [PATCH] tests: rewrite coverity job to avoid deprecated "only" feature The "only" feature has been deprecated for a while. The standard replacement is the rules:if feature. Signed-off-by: Zygmunt Krynicki --- .gitlab-ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ecc81133..0b48c3a2d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -178,11 +178,6 @@ coverity: stage: .post extends: - .ubuntu-before_script - only: - refs: - - master - variables: - - $CI_PROJECT_PATH == "apparmor/apparmor" script: - apt-get install --no-install-recommends -y curl git texlive-latex-recommended - *install-c-build-deps @@ -196,3 +191,5 @@ coverity: artifacts: paths: - "apparmor-*.tar.gz" + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_PATH == "apparmor/apparmor"