首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SonarQube无法完成构建后步骤。

SonarQube无法完成构建后步骤。
EN

Stack Overflow用户
提问于 2016-04-21 09:28:16
回答 1查看 2.4K关注 0票数 1

我在Windows2012 R2上安装了一个Jenkins。这些是我的构建设置:

在下面你看到了错误。应该说,预构建步骤成功运行:

代码语言:javascript
复制
[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配置中,我有以下内容:

我是不是漏掉了什么东西能让这件事成功?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-04-21 11:04:18

好吧,我想出来了

我忘记在使用/t:rebuild的建筑物和运行End命令之间添加一个MSBuild。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36765388

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档