You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 18 in the build log there is a warning, that states the reason for the problem: WARNING: Running the Scanner for MSBuild under Local System or Network Service account is not supported. Please, use a local or domain user account instead.. This means that your build slaves run the Jenkins process using Local System account, which is not supported by SonarScanner for MSBuild. I would recommend creating a dedicated used for the build agents and run the Jenkins process with it.
@valhristov I am using this on TeamCity using a Docker Agent, which is not domain joined and I haven't come across this issue. Since this change has been implemented we can no longer go beyond version 4.2.
Will there be an option to disable this behaviour?
Description
Jenkins pipeline fails with SonarQube analysis.
Repro steps
bat '''cd "%WORKSPACE%\master"
D:\SonarMSBuild\SonarScanner.MSBuild.exe begin /k:STAT /n:STAT /v:1.0 /d:sonar.verbose=true'''
bat '''cd "%WORKSPACE%\master"
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" %WORKSPACE%\master\StateFilings.sln /t:Rebuild /p:Configuration=QA /p:OutputPath=obj\QA /p:Platform="Any CPU" /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}'''
bat '''cd "%WORKSPACE%\master"
D:\SonarMSBuild\SonarScanner.MSBuild.exe end'''
FullLog.txt
SonarQube out file "ProjectInfo" has the following content:
Product projects
Test projects
Invalid projects
{none}
Skipped projects
{none}
Excluded projects
{none}
Expected behavior
Successful Build
Actual behavior
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
Known workarounds
Please provide a description of any known workarounds.
Related information
The text was updated successfully, but these errors were encountered: