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

Hello,
I have Jenkins pipeline with Credential in secret text, With SonarQube Scanner V2.13.1
I have jenkinsfile , it’s working fine. the problem when i added “withSonarQubeENV(“Server name”)”
What I suppose to do to let Jenkinsfile send the code to sonarqube and add reports in the dashboard?







Hi,

Welcome to the community!

Can you provide the analysis log (the Jenkins log from when analysis runs) in text format? These screen pictures are a bit difficult to work with at this end.

From what I can tell, your pipeline syntax doesn’t match the docs:
Yours: withSonarQubeEnv(installationName: 'sonarqube')
vs
Docs: withSonarQubeEnv('sonarqube')

And that may be having an impact

 
HTH,
Ann

Hello,
Thank you for the response,
I did like what in the DOC : withSonarQubeEnv(‘sonarqube’). and I still have the same problem.
what do you think causes this issue?

Hi,

 
:woman_shrugging:
Ann

Hi,
Thank you for your response.
I did in Jenkins debug and I got this error ?

Hi,

That error usually means the SonarQube URL isn’t quite right.

And if you need to send further logs, please copy/paste the text of the logs. As I stated earlier, these pictures of screens are difficult to work with.

 
Ann