Defining sonar.sources in Jenkins for files directly in git repository (without any directory)


(Farooq Khan) #1

Hi,

I am trying to define sonar.sources in Jenkins for files which are directly stored on git repository level (without any src or any other directory in repository).

Normally we use “src” or any other relative path to source code in sonar.source. But here files are directly stored in repo without any folder.

What is the correct way to define sonar.sources for such case?

I tried with “sonar.sources=//”, however it didn’t work. Any help would be great.

Thanks,
Farooq


(Farooq Khan) #2

It worked with sonar.source=.

Topic can be deleted.
Thanks.