Must-share information (formatted with Markdown):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Developer 8.2 with Java-, C++, C# scanners
what are you trying to achieve
Analyze our product with contains
- Java 8 (buid with ant)
- C++ and C++/CLI wrapper (build with Visual Studio 2019)
- C# (build with Visual Studio 2019, including libraries and WIX installer)
Java is using C++ with JNI.
All is build in Azure DevOps Server with an yaml pipeline.
what have you tried so far to achieve this
To start I tried to set up the Java analysis without code coverage:
- task: sonarsource.sonarqube.15B84CA1-B62F-4A2A-A403-89B77A063157.SonarQubePrepare@4 displayName: 'Prepare analysis on SonarQube' continueOnError: true inputs: SonarQube: Sonarqube projectKey: ProductName.Java projectName: ProductName.Java projectVersion: '$(Build.BuildNumber)' extraProperties: | #sonar.java.source=8 sonar.java.binaries=$(JavaClassesPath) #sonar.java.libraries='$(Build.SourcesDirectory)/src/lib' - task: BatchScript@1 displayName: 'Build Tool Studio Java Archive' inputs: filename: 'Build_release.cmd' # This script sets some environment variables and calls several times ant modifyEnvironment: true - task: sonarsource.sonarqube.6D01813A-9589-4B15-8491-8164AEB38055.SonarQubeAnalyze@4 displayName: 'Complete the SonarQube analysis' condition: succeededOrFailed()
Unfortunately, the Analyze task fails.
Do I have any chance to analyze all three parts in one project in SonarQube?
What is the recommended way to analyze multi-language projects?