Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,841
Community Members
 
Community Events
168
Community Groups

SonarQube java binaries parameter

Edited

Hi,

 

I have a simple java application on my windows machine, when running "sonar-scanner" from CMD the scan executes successfully. However, when I use Bmboo build plan I have the below as my Additional parameters:

-Dsonar.projectKey=Demo
-Dsonar.host.url=https://sonarqube.business.org
-Dsonar.login=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-Dsonar.java.binaries=C:\Users\omar\projects\OmarsWP9T2Demo

The build fails with this error: 

"NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
ERROR: Invalid value for sonar.java.binaries
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: No files nor directories matching 'C:\Users\omar\projects\OmarsWP9T2Demo'"

 

This is very odd since I have my .class files in this path 'C:\Users\omar\projects\OmarsWP9T2Demo'"

 

Can someone let me know how to fix this please?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

310 views 0 7
Read article

Atlassian Community Events