Page MenuHomePhabricator

Upgrade SonarQube / codehealth jobs to use Java 21
Open, Needs TriagePublic

Description

Sonar jobs failing with:

00:02:34.280 ERROR: Error during SonarScanner execution
00:02:34.280 ERROR: 
00:02:34.280 
00:02:34.280 The version of Java (17) used to run this analysis is deprecated, and SonarQube Cloud no longer supports it. Please upgrade to Java 21 or later.

More info in https://community.sonarsource.com/t/reminder-upgrade-to-java-21-for-sonarqube-cloud-analysis-by-july-20-2026/185820

Event Timeline

Change #1314014 had a related patch set uploaded (by Pwangai; author: Pwangai):

[integration/config@master] dockerfiles: sonar-scanner: upgrade from Java 17 to 21

https://gerrit.wikimedia.org/r/1314014

Change #1314025 had a related patch set uploaded (by Pwangai; author: Pwangai):

[integration/config@master] jjb: Bump codehealth jobs to sonar-scanner with Java 21

https://gerrit.wikimedia.org/r/1314025

Change #1314014 merged by jenkins-bot:

[integration/config@master] dockerfiles: sonar-scanner: upgrade from Java 17 to 21

https://gerrit.wikimedia.org/r/1314014

Image published:

== Step 0: scanning /etc/zuul/wikimedia/dockerfiles ==
Will build the following images:
* docker-registry.discovery.wmnet/releng/sonar-scanner:4.6.0.2311-s18
== Step 1: building images ==
* Built image docker-registry.discovery.wmnet/releng/sonar-scanner:4.6.0.2311-s18
== Step 2: publishing ==
Successfully published image docker-registry.discovery.wmnet/releng/sonar-scanner:4.6.0.2311-s18
== Build done! ==

Apologies, I do this once or twice a year at most, need to untangle running the tooling on my current machine, and have to run out the door to a dental appointment. I'll pick this back up in a few hours if no one has beaten me to it. Docker image published, just needs the jjb part.

No worries @brennen . Thanks for your help so far. Once the jjb part is deployed, I will be around to test if the pipeline behaves as it should

Change #1314025 merged by jenkins-bot:

[integration/config@master] jjb: Bump codehealth jobs to sonar-scanner with Java 21

https://gerrit.wikimedia.org/r/1314025

Change #1314788 had a related patch set uploaded (by Gmodena; author: Gmodena):

[integration/config@master] jjb: run Maven Sonar analysis on Java 21

https://gerrit.wikimedia.org/r/1314788

Change #1314788 merged by jenkins-bot:

[integration/config@master] jjb: run Maven Sonar analysis on Java 21

https://gerrit.wikimedia.org/r/1314788