SonarQube not finding junit xml files.

I know this isnt strictly java related but since i am using junit ad java within sonarcube i thought id ask: 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
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 to change the path using ** at the start of it. I also tried copying the xml file directly to the project root but still nothing.
3 Replies
JavaBot
JavaBot3w ago
This post has been reserved for your question.
Hey @joe! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
joe
joeOP3w ago
still looking for help
JavaBot
JavaBot3w ago
Post Closed
This post has been closed by <@743072402702860358> for the following reason:
User left the server
Want results from more Discord servers?
Add your server