SonarCloud don't have sonar.analysis?

Hello Sonar Community,

I have question, why i can’t sonar.analysis setting in SonarCloud ? does it not available or does it just a custom configuration that start with sonar.alysis keyword ?

Example as below:

          extraProperties: |
            sonar.verbose=true
            sonar.cs.opencover.reportsPaths="$(Build.SourcesDirectory)/coverage/**.xml"
            sonar.cs.vstest.reportsPaths="$(Build.SourcesDirectory)/TestResults/*.trx"
            sonar.test.exclusions="$(UnitTestExclusionsPattern)"
            sonar.analysis.buildNumber=$(Build.BuildId)
            sonar.analysis.pipeline=$(Build.BuildId)
            sonar.analysis.sha1=$(Build.SourceVersion)
            sonar.analysis.repository=$(Build.Repository.ID)

Is it not possible to use sonar.analysis if using SonarCloud ? if possible kindly guide me,

thank you.

Hi

What are you trying to accomplish with those parameters? Per the docs, the purpose of sonar.analysis is to allow you to store custom values with the analysis. But scanner will not act on them.

 
Ann

Hi @ganncamp , thank you for the docs.

I am just curious people use it and i can’t find the docs about it,

Thank you for letting me know it use to store a custom value for Sonar analysis.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.