Hello,
I’ve upgraded my sonarqube from 7.6 to 7.9.1 and everything works like expected except the SonarScanner for Jenkins. I’ve configured my job to execute the Sonarqube Scanner but I got the following error:
11:24:59 DEBUG: Get bootstrap index...
11:24:59 DEBUG: Download: https://sonarqube.domain.com/batch_bootstrap/index
11:24:59 DEBUG: Get bootstrap completed
11:24:59 INFO: ------------------------------------------------------------------------
11:24:59 INFO: EXECUTION FAILURE
11:24:59 INFO: ------------------------------------------------------------------------
11:24:59 INFO: Total time: 0.563s
11:24:59 INFO: Final Memory: 6M/360M
11:24:59 INFO: ------------------------------------------------------------------------
11:24:59 ERROR: Error during SonarQube Scanner execution
11:24:59 org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube
11:24:59 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:84)
11:24:59 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:71)
11:24:59 at java.security.AccessController.doPrivileged(Native Method)
11:24:59 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:71)
11:24:59 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:67)
11:24:59 at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:218)
11:24:59 at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:156)
11:24:59 at org.sonarsource.scanner.cli.Main.execute(Main.java:70)
11:24:59 at org.sonarsource.scanner.cli.Main.main(Main.java:60)
11:24:59 Caused by: java.lang.IllegalStateException: Fail to download libraries from server
11:24:59 at org.sonarsource.scanner.api.internal.Jars.downloadFiles(Jars.java:93)
11:24:59 at org.sonarsource.scanner.api.internal.Jars.download(Jars.java:70)
11:24:59 at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:39)
11:24:59 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:75)
11:24:59 ... 8 more
11:24:59 Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
11:24:59 at org.sonarsource.scanner.api.internal.Jars.downloadFiles(Jars.java:87)
11:24:59 ... 11 more
It’s seems it’s related with the https://sonarqube.domain.com/batch_bootstrap/index link because if I go directly to the link I got this message:
Any idea what I’m doing wrong or missing?
Thank you