When I execute SonarScanner.MSBuild.exe end /d:sonar.login=xxxxxxxx separate build getting success. But I need pass this in single command Because when I execute it separate jenkins is not understaing post processing getting failed.
When you report a problem like this thread, it’s a best practice to attach the full logs (scanner and build logs) of your analysis and not only the final error. If you only report the final error we are 95% blind to help you.
Please refrain from summoning particular community members in your posts. Someone will have a lot at it at some point.
That’s an MSBuild error. You are passing the MSBuild command and “scanner end” command on the same line so MSBuild.exe thinks you are passing SonarScanner.MSBuild.exe as an parameter, which it doesn’t understand.
You need to configure Jenkins to run the commands separately. Have you looked at the docs?
(x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Pharmserv_Sonar\SonarQube.Analysis.xml 17:16:07 WARNING: Please specify the command ‘begin’ or ‘end’ to indicate whether pre- or post-processing is required. These parameters will become mandatory in a later release. 17:16:07 ERROR: Execution of SonarScanner for MSBuild failed (exit code 1)
Can I ask you please to post in the original thread to keep a minimum of consistency and organization
You’re stating that you run the SonarQube Scanner begin step (1st step) but you don’t show the command so I cannot be sure that you run it correctly. (The command you provide is the 2nd step, which is the MSBuild execution)
Can you please provide all the commands that you run in succession with the full output of each of them.