Hi SonarQube Community,
I am new to Sonar Qube. I am developing Automation lab using Ansible and Vagrant. Using Vagrant, I have created a Virtual box for Jenkins, SonarQube , Nexus and Deployment system. I have installed SonarQube 4.5.6 in my sonar_box virtual machine.
When I build my project in Jenkins, I am getting below error analysis phase.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project soccer-stats: With SonarQube server prior to 5.6, use sonar-maven-plugin <= 3.3 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[Pipeline] }
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeeded?
[Pipeline] // withSonarQubeEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
In my Jenkins_box virtual machine, I have added below code in /opt/apache-maven-3.5.4/conf/settings.xml
and it is not working,
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<!-- version>3.3.0.1492</version -->
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- Optional URL to server. Default value is http://localhost:9000 -->
<sonar.host.url>
http://192.168.56.4:9000
</sonar.host.url>
</properties>
</profile>
</profiles>
I have changed sonar-maven plugin version to 3.3.0 and 3.2.0
in Jenkins->ManageJekins-> Global Tool
too, but, it is not working
Please help me to solve this issue.