SonarQube can’t find my junit xml files

hi there,

in my sonar-project.properties file i have set the xml file destination as follows:

sonar.junit.reportPaths=./testreports/*.xml

however, in my jenkins build logs for the project i see:

INFO: parsing [/var/lib/jenkins/workspace/cw-1/testreports/*.xml] ERROR: Reports path not found or is not a directory: /var/lib/jenkins/workspace/cw-1/testreports/*.xml

The path does exists as i have verified via ssh into the ec2 instance

is there something im missing here?

I have tried setting this to the absolute path, and also without *, to the file directly.

I also tried copying the xml file directly to the project root but still nothing.

sonar.junit.reportPaths needs to point to a directory, So ./testreports/ instead of ./testreports/*.xml