ERROR: Error during SonarScanner execution ERROR: The folder 'var/Jenkins/.jenkins/workspace/AngularApp'

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this
    I am trying to intigrate sonaqube with jenkins. When I build my project I see the following error.
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=40ms
INFO: Load/download plugins (done) | time=129ms
INFO: Process project properties
ERROR: Invalid value of sonar.sources for AngularApp
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 7.148s
INFO: Final Memory: 5M/27M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: The folder 'var/Jenkins/.jenkins/workspace/AngularApp' does not exist for 'AngularApp' (base directory = C:\ProgramData\Jenkins\.jenkins\workspace\AngularApp)
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?
ERROR: SonarQube scanner exited with non-zero code: 1
Finished: FAILURE

This is the picture of my build scaner in jenkins.

My Path is correct I just not sure why I use var as in my derictory its C:/programdeata… and so on.

Please help me to fidn out the issu.


I guess this is your problem. I would start by correcting the sonar.sources value to what you know to be correct. Ideally, the path will be relative to where analysis starts from, so there’s no worry about /var versus C:\