- ALM used:
Azure DevOps
- CI system used:
Azure DevOps
- Scanner command used when applicable (private details masked):
- We use Azure DevOps tasks. Snippet of relevant piece of pipeline
- task: SonarCloudPrepare@1 inputs: SonarCloud: 'sonarcloud' organization: 'alayacare' scannerMode: 'MSBuild' projectKey: 'clinical-care-api-auth' projectName: 'clinical-care-api-auth' extraProperties: | sonar.cs.opencover.reportsPaths="**/*coverage*.xml" - task: DotNetCoreCLI@2 displayName: 'Restore Packages' inputs: command: restore projects: 'Tests/**/*.csproj' feedsToUse: 'select' vstsFeed: 'd2a39f60-7b57-4631-8ef6-06c61f453733' - task: DotNetCoreCLI@2 displayName: 'Run Tests' inputs: command: test projects: 'Tests/**/*.csproj' testRunTitle: 'Tests' arguments: '--no-restore /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" --collect "XPlat Code Coverage"' - task: PublishCodeCoverageResults@1 inputs: codeCoverageTool: cobertura summaryFileLocation: $(Agent.TempDirectory)/**/coverage.cobertura.xml pathToSources: $(Build.SourcesDirectory) failIfCoverageEmpty: true - task: SonarCloudAnalyze@1 - task: SonarCloudPublish@1 inputs: pollingTimeoutSec: '300'
- This part is the part that takes considerably longer when using SonarCloud:
- task: DotNetCoreCLI@2 displayName: 'Run Tests' inputs: command: test projects: 'Tests/**/*.csproj' testRunTitle: 'Tests' arguments: '--no-restore /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" --collect "XPlat Code Coverage"'
- We use Azure DevOps tasks. Snippet of relevant piece of pipeline
- Languages of the repository:
.NET Core
- Error observed:
n/a
- Steps to reproduce:
n/a
- Potential workaround:
n/a
Hi,
We are using the SonarCloud integration for Azure DevOps to analyze .NET Core and .NET Framework projects, but are experiencing a significant increase in build time, with builds previously taking less than a minute going up close to 10 minutes, and builds previously taking 10 minutes going up to almost an hour. We have experimented with using more powerful hardware, but that did not make a real difference.
Is this behavior expected? Are there ways to cut down the build time?
Thanks.