RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Table of Contents |
---|
This document will help you get clarity on the necessary steps required to Migrate JDK used in Automatics Framework and Utils (Automatics Jenkins, Core, RDKB and RDKV Utils, Partner Implementation) from JDK 8 to 11. The steps are segregated to based on the user demographic
...
...
For Automatics Tools Framework and Utils to work after migrating to JDK 11 there are 2 different ways.
The below steps can be used to upgrade Automatics Tools to JDK 11 without upgrading Jenkins server.
Upgrade the JDK on your Jenkins master node. You can use a package manager(yum , apt etc.) to install the new JVM. The last command will give the list of JDKs available in the VM along with its directory path
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
yum updateyum install java-11-openjdkupdate-java-alternatives --list |
A good indication that the plugin is installed can be found by going to Manage Jenkins > Global Tool Configuration and locating the JDK section.
If you need to upgrade Jenkins as well as the JVM, we recommend that you:
Back up JENKINS_HOME
Stop the Jenkins instance
Upgrade the JVM on which Jenkins is running
Use a package manager to install the new JVM.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
yum updateyum install java-11-openjdk |
Make sure the default JVM is the newly installed version. If it is not, run systemctl edit jenkins
and set either the JAVA_HOME
environment variable or the JENKINS_JAVA_CMD
environment variable.
Upgrade Jenkins to the most recent version
How you upgrade Jenkins is dependent upon your original Jenkins installation method.
We recommend that you use the package manager of your system (such as apt
or yum
).
Download the latest Jenkins WAR file to an appropriate directory on your machine
Open up a terminal/command prompt window to the download directory
Run the command java -jar jenkins.war
Validate the upgrade to confirm that all plugins and jobs are loaded
Upgrade the required plugins (see Upgrading Plugins)
Below steps can be followed to upgrade Automatics Framework, Utils and Jenkins server using Automated deployment