1

我得到了一個在Windows 2012 R2上設置的Jenkins服務器。這是我的生成設置:SonarQube無法完成構建後步驟

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) 
我詹金斯配置

所以我有這樣的:

enter image description here

我缺少的東西,使這項工作?

回答

3

好吧,我想通了

我忘了在MSBuild的建設和運行結束分析命令之間添加一個/t:rebuild

相關問題