Closed BraisVQ closed 2 months ago
@braisvq1996 Is there a reason to keep Java 11 in the JDK agent? The support for it ended last year September. Is there anything still that depends on that? I think you updated the CNES report to a version that does not require Java 11 anymore, right?
The current SonarQube version (9.9) still requires java 11. From Sonarqube 10.x, the scanner can be triggered using java 17
My intention is for this to be the last revision to have java 11 because it will also end its support in Jenkins soon -> https://github.com/opendevstack/ods-core/issues/1295
For the sake of forsting innovation and using the latest java features I would also include the latest LTS java version and also latest intermediate version which is today version 22, but we can opt for version 23 once is released in september.
@stitakis The latest LTS (21) is in the agent by now: https://github.com/opendevstack/ods-quickstarters/blob/master/common/jenkins-agents/jdk/docker/Dockerfile.ubi8#L39
With the changes on the next Jenkins update, java 11 gets removed so only jdk agent will maintain java 11 for now
I'm confused I think. Wouldn't that mean that the sonar scanner would not work anymore for any jenkins agent other than JDK agent because according to your comment above it requires Java 11?
My bad @renedupont, what I mean to say is that the current binary for the SonarQube scanner needs java 11 but I intend to update that so we can use java 17. This change will apply to all agents, no only jdk.
I still need to test this to be sure it works properly, but if everything goes well java 17 will be the default java version from now on and we will maintain java 11 on jdk agent for retrocompatibility.
JDK Agent
Java-SpringBoot Quickstarter
Spock-Geb Quickstarter
The Spock-Geb Quickstarter maintenance can be part of #1025
@garcanam @bassagan