TFS 2018 ERROR: The 'report' parameter is missing

On our TFS pipeline we have this issue running “Run Code Analysis” task.

SonarQube 7.6 Developer Edition (on evaluation till 14 Februrary 2019)
SonarScanner 4.*
Microsoft Visual Studio Team Foundation Server Version 16.131.28002.2

Prepare analysis task have those parameters

sonar.exclusions=**/fonts/**/*,**/Scripts/**/*,**/Content/**/*
sonar.scm.forceReloadAll=true
sonar.pullrequest.branch=$(System.PullRequest.SourceBranch)
sonar.pullrequest.key=$(System.PullRequest.PullRequestId)
sonar.pullrequest.base=master

We receive this error

2019-01-29T12:09:46.4680227Z INFO: Calculating CPD for 1089 files

2019-01-29T12:09:47.1632352Z INFO: CPD calculation finished

2019-01-29T12:09:56.0576063Z INFO: SCM writing changed lines

2019-01-29T12:09:56.2193574Z INFO: SCM writing changed lines (done) | time=156ms

2019-01-29T12:09:56.6008643Z INFO: Analysis report generated in 9047ms, dir size=2 MB

2019-01-29T12:10:00.2900930Z INFO: Analysis report compressed in 3687ms, zip size=1 MB

2019-01-29T12:10:05.7657657Z INFO: ------------------------------------------------------------------------

2019-01-29T12:10:05.7658001Z INFO: EXECUTION FAILURE

2019-01-29T12:10:05.7658368Z INFO: ------------------------------------------------------------------------

2019-01-29T12:10:05.7658541Z INFO: Total time: 47.391s

2019-01-29T12:10:05.8603447Z INFO: Final Memory: 34M/500M

2019-01-29T12:10:05.8603894Z INFO: ------------------------------------------------------------------------

2019-01-29T12:10:05.8613601Z ##[error]ERROR: Error during SonarQube Scanner execution

2019-01-29T12:10:05.8614327Z ERROR: Error during SonarQube Scanner execution

2019-01-29T12:10:05.8614848Z ##[error]ERROR: The 'report' parameter is missing

ERROR:

2019-01-29T12:10:05.8615227Z ERROR: The 'report' parameter is missing

2019-01-29T12:10:05.8615366Z ERROR:

2019-01-29T12:10:05.9611304Z ##[error]The SonarQube Scanner did not complete successfully

2019-01-29T12:10:05.9611971Z The SonarQube Scanner did not complete successfully

2019-01-29T12:10:05.9664041Z 13:10:05.958 Creating a summary markdown file...

2019-01-29T12:10:05.9694991Z ##[error]13:10:05.958 Post-processing failed. Exit code: 1

2019-01-29T12:10:05.9695549Z 13:10:05.958 Post-processing failed. Exit code: 1

After Evaluation Key applied you need to restart SonarQube service to solve issue.

1 Like