We are running SonarQube Community Edition Version 7.9.6 (build 41879), and Gradle SonarQube plugin 3.0 to build and scan our java projects.
Our Sonarqube server is shut down nightly to save money in cloud hosting, but after it is started in the morning all builds using the Gradle plugin fail until we restart the SQ server a second time. Then it is “happy” for the rest of the day.
We are running automated builds on Jenkins 2.263.4
We do have a relaxed policy on minimum coverage for passing code compared with the stock quality profiles (i.e. only 20% minimum coverage).
When we run the job with Gradle stacktrace turned on, we have:
java.lang.IllegalStateException: Unable to load component interface org.sonar.api.batch.rule.ActiveRules at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:65) at ..... java.lang.NullPointerException at org.sonar.scanner.rule.DefaultActiveRulesLoader.readPage(DefaultActiveRulesLoader.java:102) at ...