gpt4 book ai didi

c# - SonarQube 无法完成构建后步骤

转载 作者:太空宇宙 更新时间:2023-11-03 23:17:30 25 4
gpt4 key购买 nike

我在 Windows 2012 R2 上设置了 Jenkins 服务器。这些是我的build设置:

enter image description here

在下方您会看到错误。应该说预构建步骤运行成功:

[Test CSharp Build Job] $ ...\Jenkins\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\MSBuild_2.0\MSBuild.SonarQube.Runner.exe end
SonarQube Scanner for MSBuild 2.0
Default properties file was found at ...\Documents\Jenkins\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\MSBuild_2.0\SonarQube.Analysis.xml
Loading analysis properties from ...\Documents\Jenkins\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\MSBuild_2.0\SonarQube.Analysis.xml
Post-processing started.
SonarQube Scanner for MSBuild End Step 1.1
No ProjectInfo.xml files were found. Possible causes:
1. The project has not been built - the end step was called right after the begin step, without a build step in between
2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported
3. The build step has been launched from a different working folder
Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
11:18:18.015 Creating a summary markdown file...
Post-processing failed. Exit code: 1
ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)

所以在我的 Jenkins 配置中我有这个:

enter image description here

我是否遗漏了一些东西来完成这项工作?

最佳答案

好吧,我想通了

我忘记在使用 MSBuild 构建和运行 End Analysis 命令之间添加 /t:rebuild

关于c# - SonarQube 无法完成构建后步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36765388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com