Hi everyone.
I’m in the process of integrating Azure DevOps 2019 with SonarQube 7.7 Comunity Edition. I have used the Sonar Docker version, and I have deployed it in AKS (Azure Kubernetes). The applications in which I’m going to use it are Maven.
When doing a test from my laptop, the process works and the results are published in Sonarqube, but when I try to do it from Azure DevOps, using the Plugin provided for it, I get the following error:
Is a Developer version or higher required? Or I can use the Comunity Edition version
18:00:37.0139801Z [INFO] --- sonar-maven-plugin:3.6.0.1398:sonar (default-cli) @ elastic-customer-lookup ---
18:00:37.8242416Z [INFO] SonarQube version: 7.7.0
18:00:37.9719022Z [INFO] Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
18:00:39.0327599Z [INFO] Load global settings
18:00:39.3014969Z [INFO] Load global settings (done) | time=250ms
18:00:39.3015519Z [INFO] Server id: 655688BF-AWpvckwdaTFP-bLeBRU_
18:00:39.3832977Z [INFO] User cache: C:\Users\VssAdministrator\.sonar\cache
18:00:39.3833890Z [INFO] Load/download plugins
18:00:39.3834108Z [INFO] Load plugins index
18:00:39.6389995Z [INFO] Load plugins index (done) | time=250ms
18:00:45.0334756Z [INFO] Load/download plugins (done) | time=5650ms
18:00:45.7099271Z [INFO] Process project properties
18:00:45.7175373Z [INFO] Execute project builders
18:00:45.7404101Z [INFO] Execute project builders (done) | time=15ms
18:00:45.7625539Z [INFO] ------------------------------------------------------------------------
18:00:45.7629691Z [INFO] BUILD FAILURE
18:00:45.7629988Z [INFO] ------------------------------------------------------------------------
18:00:45.7630165Z [INFO] Total time: 01:49 min
18:00:45.7630567Z [INFO] Finished at: 18:00:45Z
18:00:45.7630719Z [INFO] ------------------------------------------------------------------------
18:00:45.7639895Z [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project elastic-customer-lookup: Validation of project reactor failed:
18:00:45.7652913Z [ERROR] o To use the property "sonar.branch.name", the branch plugin is required but not installed. See the documentation of branch support: https://redirect.sonarsource.com/doc/branches.html.
18:00:45.7653374Z [ERROR] -> [Help 1]
18:00:45.7655381Z [ERROR]
18:00:45.7657531Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
18:00:45.7658654Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
18:00:45.7661417Z [ERROR]
18:00:45.7662574Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
18:00:45.7662981Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
18:00:45.8339139Z C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.0\bin\mvn.cmd failed with return code: 1
18:00:45.8340229Z Could not retrieve code analysis results - Maven run failed.
18:00:46.0088938Z No test result files matching d:\a\1\s\**\target\site\jacoco\jacoco.xml were found, so publishing JUnit test results is being skipped.
18:00:46.0102132Z [command]C:\windows\system32\cmd.exe /D /S /C "C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.0\bin\mvn.cmd -f d:\a\1\s\elastic-customer-lookup\pom.xml --settings elastic-customer-lookup/settings.xml verify"