MSBuild Scanner includes Jenkins -D Startup Switch

We are currently running the MSBuild scanner from Jenkins and when calling the MSBuild Scanner.exe from Jenkins the Jenkins parameter "\Jenkins\keystore\jenkins.truststore" is called in the syntax.

Versions of MsBuild Scanner:
Version of Sonarqube

  • Community Edition
  • Version 8.4.1 (build 35646)
    Plugin in Jenkins
    SonarQube Scanner[2.12]

Error message logged:
[Frontend - SonarQube] $ Y:\Jenkins\tools\Sonar\sonar-scanner-msbuild-\SonarScanner.MSBuild.exe begin /k:79d0d20d48f28a8d0fefa4c4928bb0678faf1766 /n:Frontend:ME21 /v:1.0 /\Jenkins\keystore\jenkins.truststore SonarScanner for MSBuild 5.0.4 Using the .NET Framework version of the Scanner for MSBuild Pre-processing started. Preparing working directories… 12:52:18.79 12:52:18.783 Unrecognized command line argument:\Jenkins\keystore\jenkins.truststore 12:52:18.791 Expecting at least the following command line argument:

  • SonarQube/SonarCloud project key
    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.

Jenkins Begin Job

Jenkins MS Build

Jenkins End

Where we believe the command line argument is coming from
-Xrs -Xmx2048m\Keystore\jenkins.truststore -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dhudson.model.DirectoryBrowserSupport.CSP=“default-src ‘none’; img-src ‘self’; style-src ‘self’; child-src ‘self’; frame-src ‘self’; script-src ‘self’ ‘unsafe-inline’;” -jar “%BASE%\jenkins.war” --httpPort=-1 --httpsKeyStore=%BASE%\Keystore\jenkins.keystore --httpsKeyStorePassword=Password --httpsPort=443 --webroot="%BASE%\war"

Any help appreciated.