Run Code Analysis task for SonarQube Fails in TFS 2017 Build definition after upgrading to SonarQube 6.7.5

scanner
quality-profiles
sonarqube
vsts

(Suraj Pardeshi) #1

Hi,

SonarQuber Version: 6.7.5
TFS - 2017 Update3

I am using SonarQube’s VSTS extensions to trigger the builds. I am building angular projects but the build definition is getting failed in Run Code Analysis task of Sonar.
Previously it used to work fine with SonarQube 5.6.6 but recently we upgraded the SonarQube to 6.7.5 in production and from then on wards the build started getting failed with the below error.

2018-11-21T13:26:26.4847112Z ##[error]ERROR: Error during SonarQube Scanner execution
2018-11-21T13:26:26.4847112Z ##[debug]Processed: ##vso[task.logissue type=error;]ERROR: Error during SonarQube Scanner execution
2018-11-21T13:26:26.4847112Z ##[debug]Processed: ERROR: Error during SonarQube Scanner execution##vso[task.logissue type=error;]
**2018-11-21T13:26:26.4847112Z **
2018-11-21T13:26:26.4847112Z ##[error]ERROR: Unable to register token in file src/app/areas/match-group/create-match-group/create-match-group.component.ts

I have also attached complete log of the task for reference.

7_Run Code Analysis.txt (11.2 KB)

Before we upgraded the SonarQube version in production to 6.7.5, I had tested the Build definition by pointing to it on Staging environment and it used to work there as well but after actual upgrade took place in production it started failing.

I think it is because the Quality gate is failing but I am not sure that really the Quality gate is failing because it is not mentioned in the log anywhere that Project does not pass the quality gate or it might be because of the Upgrade as well?

So can anyone please have a look on the log and help me in understanding it?

Regards,
SRP.