MSBuild.SonarQube.Runner.exe end - filed in Jenkins, Why????

840 views
Skip to first unread message

gopinat...@gmail.com

unread,
Nov 2, 2017, 3:09:49 AM11/2/17
to SonarQube
I tried configuring SonarQube in our Jenkins server to perform code analysis,

Below are the steps I configured in Jenkins.
  1. Installed SonarQube plugin and configured.
  2. SonarqQube scanner for MSBuild - begin analysis (Result - Success without any errors).
  3. "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" Sample.sln  /t:rebuild  (Result - Success without any errors).
  4. SonarqQube scanner for MSBuild - begin analysis  (Result - Failed).

D:\sonar-scanner-msbuild-3.0.2.656\MSBuild.SonarQube.Runner.exe end
SonarQube Scanner for MSBuild 3.0.2
Default properties file was found at D:\sonar-scanner-msbuild-3.0.2.656\SonarQube.Analysis.xml
Loading analysis properties from D:\sonar-scanner-msbuild-3.0.2.656\SonarQube.Analysis.xml
Post-processing started.
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
INFO: Scanner configuration file: D:\sonar-scanner-msbuild-3.0.2.656\sonar-scanner-3.0.3.778\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\Program Files (x86)\Jenkins\workspace\3nethra neo\.sonarqube\out\sonar-project.properties
INFO: SonarQube Scanner 3.0.3.778
INFO: Java 1.8.0_151 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: SONAR_SCANNER_OPTS=-Xmx1024m
INFO: User cache: C:\Users\ForusBuild\.sonar\cache
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=138ms
INFO: Server id: 10f066f7fdfc24d
INFO: User cache: C:\Users\ForusBuild\.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=99ms
INFO: SonarQube server 6.6.0
INFO: Default locale: "en_IN", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Process project properties
INFO: Load project repositories
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 4.204s
INFO: Final Memory: 45M/291M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.
ERROR: 
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
The SonarQube Scanner did not complete successfully
Creating a summary markdown file...
Post-processing failed. Exit code: 1
ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)
Finished: FAILURE

Note1: I did it manually,  EXECUTION SUCCESS, The SonarQube Scanner has finished, Post-processing succeeded.
Note2: When I do it from Jenkins it was thrown an error. 


Any ideas....


Thanks in Advance.

gopinat...@gmail.com

unread,
Nov 2, 2017, 3:12:12 AM11/2/17
to SonarQube


On Thursday, November 2, 2017 at 12:39:49 PM UTC+5:30, gopinat...@gmail.com wrote:
I tried configuring SonarQube in our Jenkins server to perform code analysis,

Below are the steps I configured in Jenkins.
  1. Installed SonarQube plugin and configured.
  1. SonarqQube scanner for MSBuild - Begin analysis (Result - Success without any errors).
  1. "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" Sample.sln  /t:rebuild  (Result - Success without any errors).
  1. SonarqQube scanner for MSBuild - End analysis  (Result - Failed).

G. Ann Campbell

unread,
Nov 2, 2017, 8:15:30 AM11/2/17
to SonarQube
I'm closing this thread because the same question has been asked and answered in this thread.


Ann
Reply all
Reply to author
Forward
0 new messages