Hi,
I would like to integrate SonarQube Scanner for Msbuild in my Jenkins pipeline.
the SonarQube version is Enterprise SonarQube to version 7.2.1
I followed the guide below to configure Jenkins.
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkin
s
However, I get the error below.
SonarScanner for MSBuild 4.6.1
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories…
16:40:42.23 16:40:42.191 Unrecognized command line argument: -Dsonar.jdbc.dialect=mssql
16:40:42.23 16:40:42.226 Unrecognized command line argument: -Dsonar.jdbc.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
16:40:42.23 16:40:42.226 Unrecognized command line argument: -Dsonar.jdbc.maxActive=20
16:40:42.23 16:40:42.226 Unrecognized command line argument: -DSonar.jdbc.maxIdle=5
16:40:42.23 16:40:42.226 Unrecognized command line argument: -Dsonar.jdbc.minIdle=2
16:40:42.23 16:40:42.226 Unrecognized command line argument: -Dsonar.jdbc.maxWait=5000
16:40:42.23 16:40:42.226 Unrecognized command line argument: -Dsonar.jdbc.minEvictableIdleTimeMillis=600000
16:40:42.23 16:40:42.226 Unrecognized command line argument: -Dsonar.jdbc.timeBetweenEvictionRunsMillis=30000
16:40:42.23 Expecting at least the following command line argument:
- SonarQube project key
When connecting to a SonarQube server earlier than version 6.1, the following command line arguments are also required: - SonarQube project name
- SonarQube project version
The full path to a settings file can also be supplied. If it is not supplied, the exe will attempt to locate a default settings file in the same directory as the SonarQube Scanner for MSBuild.
Use ‘/?’ or ‘/h’ to see the help message.
16:40:42.231 Pre-processing failed. Exit code: 1
ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)
Finished: FAILURE
Can any one provide some advice?
Thanks.