2016-10-04 18 views
0

我想對詹金斯運行C#代碼分析,但總是得到這個錯誤錯誤試圖用錯誤來分析MSBuild.SonarQube.Runner.exe

/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: 1: 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: 
MZ����@���: not found 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: 1: 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: ��kO����j: not found 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: 22: 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: ��V�0N Jl �@ ���.rsrc��[email protected]@.reloc�[email protected],lH,�2,�^�@j�0}s �~rp�)%rp�(7s o ~rp�)%r-p�(8s o ~~ o ~~ o *0�-r5ps z-rUps zQ~s o (_�(o o ( (! _�i(_,=�%�%�s: File name too long 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: 23: 
/var/jenkins_home/tools/hudson.plugins.sonar.MsBuildSQRunnerInstallation/SonarQube_Scanner_for_MSBuild_2.0/MSBuild.SonarQube.Runner.exe: Syntax error: word unexpected (expecting ")") 
ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 2) Finished: FAILURE 
+0

您粘貼的代碼中存在編碼問題。你能解決這個問題嗎? –

+0

這就是問題所在,始終顯示這些符號,我們不知道如何查看清晰的日誌。 – Santiago109

+0

我們嘗試通過控制檯,相同的過程,並說這個 'MSBuild.SonarQube.Runner.exe開始/ k:TEST_INDIVIDUAL/n:測試/v:1.0 /d:sonar.host.url=http:/ /sonarqube.xxxxx.com.co:9000/ bash:MSBuild.SonarQube.Runner.exe:command not found' – Santiago109

回答

3

你試圖執行一個Windows二進制文件( 「.exe」文件)在類Unix操作系統上。難怪爲什麼這不起作用。

如果要使用Jenkins的SonarQube掃描儀和MSBuild的SonarQube掃描儀來構建.NET解決方案,則必須明確地配置作業以在Windows計算機上執行。