TFS集成SonarQube报错:无法找到指定MSBuild Runner压缩包
环境信息
- SonarQube版本:9.6(社区版),部署于Azure
- TFS版本:2018 Update 16.131
- SonarQube扩展版本:4.23.1.266(因TFS仅支持小于25MB的扩展,故使用旧版本)
- 代码框架:.NET Framework 4.7.2
我通过GitHub仓库部署了SonarQube,在TFS中执行构建时出现如下错误:
2022-09-08T07:02:17.1827740Z ##[section]Starting: [DEPRECATED] Fetch the Quality Profile from SonarQube 2022-09-08T07:02:17.1936543Z ============================================================================== 2022-09-08T07:02:17.1940305Z Task : SonarQube for MSBuild - Begin Analysis 2022-09-08T07:02:17.1941880Z Description : [DEPRECATED] Fetch the Quality Profile from SonarQube to configure the analysis 2022-09-08T07:02:17.1943771Z Version : 1.0.50 2022-09-08T07:02:17.1945481Z Author : Microsoft Corporation 2022-09-08T07:02:17.1946562Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=620063) 2022-09-08T07:02:17.1947917Z ============================================================================== 2022-09-08T07:02:17.2127920Z ##[warning]Task 'SonarQubePreBuild' (1.0.50) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib 2022-09-08T07:02:17.2137624Z Preparing task execution handler. 2022-09-08T07:02:18.4131002Z Executing the powershell script: D:\Agent\TFS_AGENT_06\_work\_tasks\SonarQubePreBuild_eae5b2cc-ac5e-4cba-b022-a06621f9c01f\1.0.50\SonarQubePreBuild.ps1 2022-09-08T07:02:18.9665316Z ##[warning] The ownership of the SonarQube related build tasks is being transferred to SonarSource. 2022-09-08T07:02:18.9674084Z ##[warning] Please replace this build task with the one brought by SonarSource's extension on the marketplace: https://aka.ms/sqextension 2022-09-08T07:02:18.9681553Z ##[warning] For more details go to https://aka.ms/sqtransfer Removed blank lines 2022-09-08T07:02:19.6273139Z SonarQube Scanner for MSBuild 1.1 2022-09-08T07:02:19.7283557Z Default properties file was not found at D:\Agent\TFS_AGENT_06\_work\_tasks\SonarQubePreBuild_eae5b2cc-ac5e-4cba-b022-a06621f9c01f\1.0.50\SonarQube.Bootstrapper\SonarQube.Analysis.xml 2022-09-08T07:02:19.7285250Z Pre-processing started. 2022-09-08T07:02:19.7285878Z Preparing working directories... 2022-09-08T07:02:19.7287268Z Checking for updates... 2022-09-08T07:02:20.2338425Z ##[error]Could not find a file on the SonarQube server. Url: https://myurl.azurewebsites.net/static/csharp/SonarQube.MSBuild.Runner.Implementation.zip 2022-09-08T07:02:20.2342400Z ##[error]Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted. 2022-09-08T07:02:20.2344784Z ##[error]Pre-processing failed. Exit code: 1 2022-09-08T07:02:20.2596838Z ##[error]System.Exception: Unexpected exit code received from batch file: 1 2022-09-08T07:02:20.2600986Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeBatchScriptCmdlet.ProcessRecord() 2022-09-08T07:02:20.2603205Z at System.Management.Automation.CommandProcessor.ProcessRecord() 2022-09-08T07:02:20.2918529Z ##[error]PowerShell script completed with 1 errors. 2022-09-08T07:02:20.2948851Z ##[section]Finishing: [DEPRECATED] Fetch the Quality Profile from SonarQube
查阅多篇资料得知需安装C#插件,但在插件列表中无法找到,相关文档中的插件下载链接已失效,请求协助解决此问题。
内容的提问来源于stack exchange,提问作者Tim Chermin
相关产品推荐
相关产品推荐

