尝试使用 Error on MSBuild.SonarQube.Runner.exe 进行分析时出错
error trying to analyse with Error on MSBuild.SonarQube.Runner.exe
我正在尝试 运行 在 jenkins 上进行 C# 代码分析,但总是出现此错误
/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��P@@.reloc�X@B,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
您正在尝试在类 Unix 操作系统上执行 Windows 二进制文件(“.exe”文件)。怪不得这不行。
如果您想使用 SonarQube Scanner for Jenkins 和 SonarQube Scanner for MSBuild 构建 .NET 解决方案,那么您必须明确配置要在 Windows 机器上执行的作业。
我正在尝试 运行 在 jenkins 上进行 C# 代码分析,但总是出现此错误
/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��P@@.reloc�X@B,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
您正在尝试在类 Unix 操作系统上执行 Windows 二进制文件(“.exe”文件)。怪不得这不行。
如果您想使用 SonarQube Scanner for Jenkins 和 SonarQube Scanner for MSBuild 构建 .NET 解决方案,那么您必须明确配置要在 Windows 机器上执行的作业。