Skip to content

Commit e9b43fe

Browse files
Fix branch analysis
1 parent 9dd834a commit e9b43fe

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.cirrus/sonarqube-cloud-analysis.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ if [ "$CIRRUS_BRANCH" == "master" ] && [ -z "$CIRRUS_PR" ]; then
1818
echo '======= Analyze master branch'
1919
dotnet sonarscanner begin "${SONAR_PARAMS[@]}"
2020

21-
elif [[ "$CIRRUS_BRANCH" == "branch-"* || "$CIRRUS_BRANCH" == "ci-images-verifier" || "$CIRRUS_BRANCH" == "feature/"* ]] && [ -z "$CIRRUS_PR" ]; then
22-
echo '======= Analyze long lived branch'
23-
dotnet sonarscanner begin "${SONAR_PARAMS[@]}" -d:sonar.branch.name="${CIRRUS_BRANCH}"
24-
2521
elif [ -n "$CIRRUS_PR" ]; then
2622
echo '======= Analyze pull request'
2723
dotnet sonarscanner begin "${SONAR_PARAMS[@]}" \
@@ -30,5 +26,6 @@ elif [ -n "$CIRRUS_PR" ]; then
3026
-d:sonar.pullrequest.base="${CIRRUS_BASE_BRANCH}"
3127

3228
else
33-
echo '======= No analysis'
29+
echo '======= Analyze branch'
30+
dotnet sonarscanner begin "${SONAR_PARAMS[@]}" -d:sonar.branch.name="${CIRRUS_BRANCH}"
3431
fi

0 commit comments

Comments
 (0)