From 6664395575483c4923b45fd1d54c92fe9e4b0952 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Tue, 24 Sep 2024 10:48:28 +0200 Subject: [PATCH] ci: run spotbugs only on master branch (cherry picked from commit 6381cc65682c5bbb6c61a2b6ade6a812cda68f0a) Signed-off-by: Tigran Mkrtchyan --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a88a2eb6d8..d663730a79d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -170,6 +170,8 @@ spotbugs: stage: build image: dcache/maven-java17-tar-build extends: .build_cache + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - dnf -y -q install jq - mvn $MAVEN_CLI_OPTS -DskipTests -am -pl packages/tar -DskipTests package com.github.spotbugs:spotbugs-maven-plugin:4.8.3.0:spotbugs verify