Search code examples
jenkinssonarqube

Error during SonarQube Scanner execution.The folder 'src' does not exist for 'SonarTest'


I get the following error when I try to execute SonarQube Scanner as a part of Jenkins build:

enter image description here

Other configurations as follow:

enter image description here

The project in SVN:

enter image description here

The directory as follow:

enter image description here


Solution

  • You setup the options sonar.sources=src but your code is in SonarTest/src.

    Change to sonar.sources=SonarTest\src

    Access here to see the list of sonar paramaters.