From 599e18619b2c86fcdf35d4e762b9c6a4cad10c51 Mon Sep 17 00:00:00 2001 From: Vasileios Naskos Date: Tue, 17 Dec 2024 09:09:20 +0100 Subject: [PATCH] Fix branch analysis --- .cirrus/sonarqube-cloud-analysis.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.cirrus/sonarqube-cloud-analysis.sh b/.cirrus/sonarqube-cloud-analysis.sh index 98dc85897..e7d275acf 100644 --- a/.cirrus/sonarqube-cloud-analysis.sh +++ b/.cirrus/sonarqube-cloud-analysis.sh @@ -18,10 +18,6 @@ if [ "$CIRRUS_BRANCH" == "master" ] && [ -z "$CIRRUS_PR" ]; then echo '======= Analyze master branch' dotnet sonarscanner begin "${SONAR_PARAMS[@]}" -elif [[ "$CIRRUS_BRANCH" == "branch-"* || "$CIRRUS_BRANCH" == "ci-images-verifier" || "$CIRRUS_BRANCH" == "feature/"* ]] && [ -z "$CIRRUS_PR" ]; then - echo '======= Analyze long lived branch' - dotnet sonarscanner begin "${SONAR_PARAMS[@]}" -d:sonar.branch.name="${CIRRUS_BRANCH}" - elif [ -n "$CIRRUS_PR" ]; then echo '======= Analyze pull request' dotnet sonarscanner begin "${SONAR_PARAMS[@]}" \ @@ -30,5 +26,6 @@ elif [ -n "$CIRRUS_PR" ]; then -d:sonar.pullrequest.base="${CIRRUS_BASE_BRANCH}" else - echo '======= No analysis' + echo '======= Analyze branch' + dotnet sonarscanner begin "${SONAR_PARAMS[@]}" -d:sonar.branch.name="${CIRRUS_BRANCH}" fi