Hi there
We have an issue with build performance during sonarqube analysis on SonarQube Community Server. One project in our solution takes 33028.848 seconds to analyze while everything else seems to be fine. This results in our buildtime going from around 30mins to 2:45h.
As this specific project doesn’t need to be analyzed anyways, we want to exclude it completely from analysis.
We run our build on Teamcity. The whole folder is displayed in the log like this:
C:\Teamcity\SonarQubeBuildStep\Source\ProjectRootFolderToExclude\Project.ToExclude\SubfolderOfProject\File.cs
In ProjectSettings–>GeneralSettings–>AnalysisScope–>A. File Exclusions–>Source File Exclusions I tried following entries:
**/ProjectRootFolderToExclude/Project.ToExclude/**
**/ProjectRootFolderToExclude/Project.ToExclude/**/*
**/ProjectRootFolderToExclude/Project.ToExclude/**/*.cs
ProjectRootFolderToExclude/Project.ToExclude/**
ProjectRootFolderToExclude/Project.ToExclude/**/*
ProjectRootFolderToExclude/Project.ToExclude/**/*.cs
But none of them seem to do anything. The project is still reported to take over 30000 seconds. I also tried the same patterns to disable some rules in " Ignore Issues on Multiple Criteria" with the same result.
Can someone tell me what I’m doing wrong?
I tried to follow this: Narrowing the focus with analysis scope
If you need any more information, I’m happy to provide that.
All help is appreciated. Thanks
Edit:
One thing I saw is, that when I go to the issues list and filter for directories, the excluded directory is not shown.