本文介绍了Jenkins:不支持在本地系统或网络服务帐户下运行MSBuild扫描仪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将SonarQube与Jenkins项目(ASP.NET项目)集成.我正在尝试构建一个包含"SonarScanner for MSBuild"开始/结束分析的构建步骤的Jenkins作业.但是我收到以下错误:

I want to integrate SonarQube with a Jenkins project (ASP.NET project). I am trying to build a Jenkins job containing a build step for "SonarScanner for MSBuild " begin/end analysis. But I get the following error:

"不支持在本地系统或网络服务帐户下运行MSBuild扫描程序.请改为使用本地或域用户帐户."

我什至尝试删除"SonarScanner for MSBuild"的开始/结束分析步骤,并手动执行Windows批处理命令(在Jenkins之外运行良好).但是通过Jenkins,批处理命令也出现了相同的错误.

I even tried removing the "SonarScanner for MSBuild " begin/end analysis steps and manually executing Windows batch commands (which is working fine outside of Jenkins). But through Jenkins, I am getting the same error for the batch commands as well.

任何帮助将不胜感激!

推荐答案

我解决了这个问题.我执行了以下操作:服务> Jenkins>右键单击-属性>登录选项卡>将其从本地系统帐户"更改为此帐户".

I resolved this problem. I did the following: Services > Jenkins > Right Click - Properties > Log On tab > Changing it from 'Local System Account' to 'This Account'.

这篇关于Jenkins:不支持在本地系统或网络服务帐户下运行MSBuild扫描仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 02:04