Trying to integrate SQ to jenkins. Added the SQ properties but throwing an error for sonar.java.binaries. Use case:
I am using gradle to build. our application is using java 11 but SQ is compatiable with java 17. I am passing the java 17 during run time.
cli command: ./gradlew -x test sonarqube -Dorg.java.path= path/to/java/
And another issue is when the cacert exist in the gradle folder it is showing error for PKIX validation path invalid.
Stuck with this SQ integration for past 2 weeks.
Hi,
There seems to be a lot going on here, and we try to keep it to one topic per thread. Otherwise it can get messy, fast. Let’s deal with this part in this thread:
Analysis of Java requires access to the compiled classes. Since you’re analyzing with the SonarScanner for Gradle, the path to the binaries should be read automatically from the build environment, assuming they exist at the time of analysis. Per the docs:
Ensure that you declare the plugins in the correct sequence required by Gradle, that is, after the buildscript block in your
build.gradle
file. More details on Gradle - Plugin: org.sonarqube
HTH,
Ann