I am using Jenkins to run SonarQube for my .Net project(C#).
Visual Studio:2015 MsBuils: 14 Jenkins on Linux (1.624) SonarServer on Linux (Sonar Version 6.0)
Job Config: SonarQube Scanner for MsBuilds- Begin analysis
Project key: Project Name: Proj Version:
Build a Visual Studio Project or Solution using MSBuild: MsBuild Version : MsBuild 4.6 MsBuild File: CI.Sln Command Line Arguments: /p:Configuration=Release /target:Build
SonarQube Scanner for MSBuild- End Analysis
I can generate report for Visual Studio 2015 and post to Sonar Server but when i try to run in Jenkins job its doesn't work.
Error:
ERROR: JAVA_HOME exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be found there.
The SonarQube Scanner did not complete successfully
08:42:40.676 Creating a summary markdown file...
Post-processing failed. Exit code: 1
ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)
I have Windows Server as an agent and out put of Microsoft Windows [Version 6.2.9200]
C:\Windows\System32>echo %JAVA_HOME%
C:\Program Files\Java\jre8
Java Home Variable Path:C:\Program Files\Java\jre8
Please let me know how would I make jenkins job work.