Jenkins upgrade to latest LTS:2.426.3
Closed this issue · 6 comments
Is your feature request related to a problem? Please describe
We are currently running Jenkins 2.387.1
, and are planning to upgrade it to the latest LTS version, 2.440.2
.
There are CVEs and bugs pending to be fixed by upgrading Jenkins core to higher version
opensearch-project/opensearch-build#3727
Describe the solution you'd like
Upgrade Jenkins version to the latest LTS version.
At the time this issue is created, the latest LTS version is 2.440.2
https://www.jenkins.io/doc/upgrade-guide/
Ref to the previous upgrade, here are the steps to follow:
- 1. Upgrade docker image: Docker is the source of jenkins in this setup. Sample PR #278
- 2. Upgrade Java (current Java 11): We should also consider upgrading Java version to 17 or 21 as the Jenkins will require Java 17 or 21 and drop support for Java 11 ETA in Fall 2024
https://www.jenkins.io/blog/2023/11/06/introducing-2-2-2-java-support-plan/#:~:text=Jenkins%202.426.,releases%20at%20any%20given%20time. - 3. Bump jenkins core version in build.gradle: Associated repos https://github.com/opensearch-project/opensearch-build, https://github.com/opensearch-project/opensearch-build-libraries
- 4. Add documentation on how to upgrade. Documentation should mention EBS backing up as well.
Describe alternatives you've considered
N/A
Additional context
N/A
Regarding the Java upgrade of our Jenkins nodes, we have the option to upgrade to either JDK17 or JDK21. Docker Hub currently provides support for both versions on the LTS 2.426.3:
For JDK21: 2.440.2-lts-jdk21
For JDK17: 2.440.2-lts-jdk17
Given that JDK21 is relatively recent, and taking into account Jenkins' commitment to maintaining support for JDK17 until the early 2026, would it be ok for us to proceed with the upgrade to JDK17 for now?
cc: @peterzhuamazon @gaiksaya @prudhvigodithi
We decided to move on with using JDK17
We have decided to move on with using JDK21 becasue it will be officially supported until 2029
Related windows issues:
https://issues.jenkins.io/browse/JENKINS-73202
We are changing to use jenkins:2.426.3-lts-jdk21.
Jenkins is successfully upgraded to 2.426.3