Jenkins: Running Scanner for MSBuild under Local System or Network Service account is not supported

社会主义新天地 提交于 2019-12-11 13:17:49

问题


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:

"Running the Scanner for MSBuild under Local System or Network Service account is not supported. Please, use a local or domain user account instead."

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.

Any help would be appreciated!


回答1:


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'.



来源:https://stackoverflow.com/questions/51950822/jenkins-running-scanner-for-msbuild-under-local-system-or-network-service-accou

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!