WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succedeed?

ERROR: Error during SonarQube Scanner execution
ERROR: Insufficient privileges
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succedeed?
ERROR: SonarQube scanner exited with non-zero code: 1

Finished: FAILURE

ERROR: Insufficient privileges

With that amount of explication, this is the only help we can give you.

You checked if you’re passing the sonar.login property correctly? Are you using sonar-scanner, SonarScanner.MSBuild or what?

2 Likes

We are using Sonar-scanner which we have configured in Jenkins global tool configuration.

I bet that the value of sonar.login is wrong.

I will check on that and get back to you.

Thanks

for Sonar.login a token is provided but it is throwing same error

Analysis report generated in 3772ms, dir size=5 MB
INFO: Analysis reports compressed in 3992ms, zip size=2 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 3:45.270s
INFO: Final Memory: 53M/1616M INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Insufficient privileges
ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succedeed?
ERROR: SonarQube scanner exited with non-zero code: 1
Finished: FAILURE

Hi,

‘Insufficient privileges’
Check the global permissions https://yoursonarhost/admin/permissions, the user needs ‘Execute Analysis’ and ‘Create Projects’ (if initial scan) permission. Our Jenkins user is in the admin group and has all permissions.

Regards,
Gilbert