Read sonar.inclusions from a text file

Hi,
I am trying to set sonar.inclusions from a text file, how do I do that?

Everytime it is not feasible to manually go and write each of the directories. Hence I am trying to read sonar.inclusions from a text file.
Please help :slight_smile:

Hi,

You really only have 2 options here:

  • set your exclusions through the UI (preferred)
  • set your exclusions with your other analysis properties, whether that’s in sonar-project.properties, your pom.xml your Gradle properties, or however else you pass properties.

 
HTH,
Ann

2 Likes

Solved by creating a sonar.properties file and then passing it as a parameter in Jenkins.

Thanks Ann.