How to Upgrade Jenkins to New Version and Update Plugins (2024)

Jenkins is an open source automation server, which will help you to build, deploy and automate your enterprise application.

If you are using Jenkins for production deployment, it is very critical to keep it up-to-date with the latest version.

Jenkins has a very active open source community. They constantly release new versions with lot of new features and bug fixes.

In this tutorial, we’ll explain how to upgrade your Jenkins to a newer version, and update all the plugins accordingly.

Identify Current Jenkins Version

To identify your current version of Jenkins, you can do one of two things.

From the Jenkins UI, from any screen, if you look at the bottom right corner, you’ll see the current version of the Jenkins that you are running.

Or, login to the Jenkins server, and use the jenkins-cli.jar and execute the following to get the current version from the command line.

java -jar jenkins-cli.jar -s http://localhost:8080/ version

In my case, the current version that I’m running is: Jenkins ver. 2.5

When you login to Jenkins UI, and click on “Manage Jenkins” menu item, if you need an upgrade, it will display the following message at the top saying that a new version of Jenkins is available for download.

How to Upgrade Jenkins to New Version and Update Plugins (1)

In this example, the new version that is available for dowload is: Jenkins ver. 2.9.

So, I’ll be upgrading from version 2.5 to 2.9. Please note that the upgrade procedure is very similar for any version of Jenkins.

BTW, you should use the admin account that you created during Jenkins Security Setup to login to the GUI.

Download New Jenkins War File

When you click on the download link from the above message, it will not download the whole Jenkins Installer. Instead, it will download only the jenkins.war file.

You can just copy the link to download from your Jenkins GUI, and go to command prompt, and use wget to download the war file.

cd /downloadswget http://updates.jenkins-ci.org/download/war/2.9/jenkins.war

Note: If you’ve installed Jenkins as part of yum install, then you should do “yum update jenkins”, which will upgrade the war file accordingly. Also, if you’ve previously installed Jenkins using yum, but yum repository still doesn’t have the latest version of Jenkins, you can still go-ahead and download the war file and upgrade it manually on top of the yum-jenkins-installation as explained in this article. Eventually when the repository catches up with the latest version, you can always do yum update jenkins at that time.

Install the New Jenkins War File

On your server, jenkins.war file is located under /usr/lib/jenkins directory.

Before you copy the new version of the jenkins war file, take a backup of the existing version of jenkins war file.

cp /usr/lib/jenkins/jenkins.war /downloads/jenkins.war.previous.version

Next, copy the newly downloaded war file to the /usr/lib/jenkins directory.

cp /downloads/jenkins.war /usr/lib/jenkins/

Next, restart the Jenkins service as shown below. Use either systemctl or service command.

systemctl stop jenkinssystemctl start jenkins

This shows that the Jenkins server is running with the new var file.

# systemctl status jenkins? jenkins.service - LSB: Jenkins Continuous Integration Server Loaded: loaded (/etc/rc.d/init.d/jenkins) Active: active (running) since Sun 2016-06-11 20:33:16 PDT; 3s ago Docs: man:systemd-sysv-generator(8) Process: 32453 ExecStop=/etc/rc.d/init.d/jenkins stop (code=exited, status=0/SUCCESS) Process: 32473 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS) Memory: 461.2M CGroup: /system.slice/jenkins.service +-32498 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --log...Jun 10 20:33:15 devdb systemd[1]: Starting LSB: Jenkins Continuous Integration Server...Jun 10 20:33:15 devdb runuser[32474]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)Jun 10 20:33:16 devdb runuser[32474]: pam_unix(runuser:session): session closed for user jenkinsJun 10 20:33:16 devdb jenkins[32473]: Starting Jenkins [ OK ]Jun 10 20:33:16 devdb systemd[1]: Started LSB: Jenkins Continuous Integration Server.

Post Upgrade Tasks

After the upgrade, login to your Jenkins UI and verify that you see the new version number at the bottom right corner.

Or, execute the following command from the command line, to see the new version.

java -jar jenkins-cli.jar -s http://localhost:8080/ version

After the upgrade, I see the new version as: Jenkins ver. 2.9

Also, now when you go to “Manage Jenkins” page, you’ll not see that upgrade available message anymore.

But here you’ll see any additional tasks that you may still have to do on your Jenkins server.

In this example, I see the following that says that I should consider turning on the agent to master security subsystem.

How to Upgrade Jenkins to New Version and Update Plugins (2)

To do this, go to Configure global security -> From this page, scroll down to the bottom section for “Plugin Manager”, where “Enable Slave -> Master Access Control” is not checked. Click on the check-box to select this option.

When you select the “Enable Slave”, it will also show this right below it: “Rules can be tweaked here.” Now, click on Save.

How to Upgrade Jenkins to New Version and Update Plugins (3)

From the rules page, you can tweak the settings for this particular configuration.

Additional Post Upgrade Tasks

When you go to “Manage Jenkins”, depending on your previous Jenkins version that you were running, you might also see this message: You have data stored in an older format and/or unreadable data.

How to Upgrade Jenkins to New Version and Update Plugins (4)

This happens when Jenkins decide to change how the data is stored in the backend. After the upgrade, the data is still stored in the old format on the disk, but during the load, it will convert it to the new format for usage. This is good if you decide to downgrade Jenkins to older version for some reason. But, ideally, once you upgrade and confirm that everything is working as expected, you should upgrade the the data to the new format.

Click on “Manage” next to it, which will show the following UI -> Click on “upgrade”

How to Upgrade Jenkins to New Version and Update Plugins (5)

After the upgrade, this “Manage old data” page will say “No old data was found.”

Now, when you go back to the manage jenkins page, you’ll not see that warning message anymore.

Upgrade Jenkins Plugins (After Jenkins Upgrade)

Anytime you upgrade Jenkins to a new version, use that opportunity to upgrade all your plugins to the new version, as some plugins might not work with the new Jenkins version and might need upgrade.

From Manage Jenkins, in the “Manage Plugins” section, you’ll see “(updates available)” in read which indicates that there are plugins that needs to be upgrade: Add, remove, disable or enable plugins that can extend the functionality of Jenkins. (updates available)

List of Plugins to be Upgraded

From Jenkins, click on “Manage Jenkins” -> click on “Manage Plugins” -> from this page, under the “Updates” tab, this will list all the plugins that needs to be upgraded.

The list of plugins under the “Updates” tab will have the following 4 columns:

  • Install – Checkbox to select either all the plugins or select them individually
  • Name – Plugin Name
  • Version – New version number of that particular plugin that is available for you to download and install
  • Installed – The old version number of that particular plugin that is currently installed on your system.

At the bottom, it will say “Update information obtained: 23 hr ago “. Click on “Check Now” button right next to it, to check for new updates again, as we need to do this after any Jenkins Upgrade.

How to Upgrade Jenkins to New Version and Update Plugins (6)

Upgrade Jenkins Plugins

Scroll down to the bottom of the page, and click on “Select All” -> Now click on “Download now and install after restart” button.

This will start updating all the plugins.

While it is upgrading the plugins, it will show the following check-box at the bottom of the page, select this check-box: Restart Jenkins when installation is complete and no jobs are running.

If the auto refresh is not enabled (it will say on the top right corner of the page), then you have to manually refresh the page to see if the upgrade is completed. You have to login again after the upgrade.

How to Upgrade Jenkins to New Version and Update Plugins (7)

Jenkins and Plugins Upgrade Completed

After all the plugins are upgraded, you will not see “(updates available)” warning next to “Mange Plugins”. Also, when you go to the plugin manager and click on “Updates” tab, it will say “no updates”!

If you’ve taken care of all post upgrade tasks, you’ll not see any warning message under the “Manage Jenkins” screen as shown below.

How to Upgrade Jenkins to New Version and Update Plugins (8)

How to Upgrade Jenkins to New Version and Update Plugins (2024)

FAQs

What are the steps to follow to upgrade Jenkins? ›

To upgrade Jenkins without losing your data, download the latest jenkins. war file, copy it to /opt/bitnami/jenkins directory and restart Jenkins. It is recommended to create a backup of the previous jenkins.

How do I make Jenkins automatically update? ›

Jenkins can be upgraded from Manage Jenkins menu also just go to manage Jenkins option click on Upgrade Automatically. Once clicked on upgrade automatically option it will take us to the upgrade progress screen once completed it should success.

How can you migrate Jenkins to a new and upgraded server? ›

Resolution
  1. Install the correct version of Jenkins on new machine. ...
  2. Migrate the startup Java arguments from the old instance to the new one. ...
  3. Stop the old instance to prevent conflicts when the new one is started.
  4. Copy $JENKINS_HOME to the Destination Controller.
  5. Check (and edit, if needed) config.

How do I update all plugins? ›

Alternatively, you can bulk update your plugins.
  1. In the dashboard, go to Plugins > Installed Plugins. ...
  2. Read the version details of the plugin update. ...
  3. Update the plugin. ...
  4. Alternatively, you can bulk update your plugins. ...
  5. Download the plugin . ...
  6. Extract the .
11 Aug 2022

How do I update plugins without losing customization? ›

There are 4 steps in this method:
  1. Step 1 - Make sure the keep data option is enabled. ...
  2. Step 2 - Deactivate and delete the old version. ...
  3. Step 3 - Install and activate the new version. ...
  4. Step 4 - Clear WordPress Caches. ...
  5. Step 1: Install the new version plugin via FTP. ...
  6. Step 2: Make sure the plugin is activated.

What are the plugins required for Jenkins? ›

Docker plugin is one among the top Jenkins plugins for enhancing DevOps. This plugin allows one to spawn Docker containers and run builds on them automatically. With this plugin, DevOps teams can use a Docker host to dynamically provision a docker container as a Jenkins agent node that runs a single build.

How many ways can I install Jenkins plugins? ›

Jenkins provides two methods for installing plugins on the controller: Using the "Plugin Manager" in the web UI. Using the Jenkins CLI install-plugin command.

What is latest version of Jenkins? ›

At the moment, the Jenkins releases 2.346. 3 and 2.361.

Where can I find plugins in Jenkins? ›

The Easiest Way to Get a Plugin For Jenkins

Select Manage Jenkins > Manage Plugins. Here you should see a tab called Advanced, where there will be an option to upload the plugin. Most plugins can be installed immediately by clicking Install without restart.

How manually update Jenkins Windows? ›

JENKINS : Update manually your Jenkins master
  1. Check if updates are available. You can see that a new version is available in the blue info ribbon. ...
  2. Check the changelog. ...
  3. Manually download update file. ...
  4. Restart Jenkins service.
  5. Connect to your Jenkins interface. ...
  6. Conclusion.
13 Apr 2021

How do I find Jenkins version? ›

Or on the Jenkins home screen when it is running click the About button and you will see the version number there.

What is job Import plugin? ›

3.1.

In Jenkins, the Job Import Plugin allows us to migrate jobs.

Can I copy plugins from one Jenkins to another? ›

We can also use thin backup plugins to copy Jenkins from one server to another. We can copy Jenkins from one server to another by cloning the job directory by a different name. Also, you can do this by renaming the existing job by renaming the directory.

Does Jenkins need JDK or JRE? ›

These requirements apply to all components of the Jenkins system, including the Jenkins controller, all types of agents, CLI clients, and other components. The Jenkins project performs a full test flow with the following JDK/JREs: OpenJDK JDK / JRE 11 - 64 bits. OpenJDK JDK / JRE 17 - 64 bits.

Do plugins need to be updated? ›

WordPress Plugins need to be updated because keeping old versions is opening the door for hackers to break in. This not only compromises your site's security and creates unnecessary headaches. The same goes for plugins, but the problems don't stop there. Plugins can stop working altogether when they're not updated.

Why is it important to update plugins? ›

The plugin developers release updates which contain patches and fixes to resolve known issues and to strengthen your site against attacks. If you don't keep up with plugin updates, you leave your site open to attack. Not only do outdated plugins cause security issues, they can also make your website buggy.

How do I check when a plugin was updated? ›

If you're not sure about the version of a plugin or theme you're currently using, you can look for needed updates to plugins and themes in the WordPress admin dashboard. Simply open the wp-admin and locate Updates in the main menu. This page will tell you if any of your plugins or themes have an update available.

How often should I update plugins? ›

How Often Should I Update My Plugins? As mentioned above Plugins regularly get updated by the plugin creator. This ensures plugins are running correctly on your site and keeps your site functional and secure. Once an update is available for a specific plugin then it should be updated as soon as possible.

Should I update plugins or theme first? ›

First, update WordPress core. Then update your plugins. Finally, update your theme last.

Should I enable auto updates for plugins? ›

Automatic updates are usually a good feature to use if you, as a site administrator, do not wish to have any hustle related to manually updating the plugins from your site. It can really be a timesaver, especially if you have multiple plugins or run multiple websites.

How do I know if a Jenkins plugin is used? ›

To view a plugin usage report: Go to Manage Jenkins. In the Tools and Actions section, select Plugin Usage.

What plugin is needed for pipeline? ›

The Build Pipeline Plugin handles the creation of multiple automatic and/or manually triggered downstream build steps on the same project.

How do I download and Install Jenkins plugins? ›

Use https://updates.jenkins-ci.org/download/plugins/.
...
  1. Navigator: Manage Jenkins | Download plugin without install option.
  2. Windows Explorer: Copy the downloaded plugin file that is located at "c:\program files (x86)\Jenkins\plugins" folder (i.e. role-strategy. ...
  3. Paste it into a shared folder in the offline server.
19 Feb 2013

How many plugins does Jenkins have? ›

How many Jenkins Plugins are there? The 1,700+ plugins encompass source code management, administration, platforms, UI/UX, building management, and much more.

How many plugins should you Install? ›

You should install as many WordPress plugins as necessary to run your website and grow your business. On average, its quite common for a business website to have at least 20 – 30 plugins. If you're using WordPress to it's full potential and have many advanced features, then this count can easily go into 50+.

What is the best Jenkins version? ›

If your definition of “most stable LTS” is “the oldest LTS release that has no open security advisories”, then Jenkins 2.332. 4 is the “most stable LTS”. If your definition of “most stable LTS” is “the most deeply tested LTS release”, then Jenkins 2.346. 1 is the “most stable LTS”.

What are the 3 types of pipelines in Jenkins? ›

Different Types of Jenkins CI/CD Pipelines. Scripted Pipeline. Declarative Pipeline.

Which is the most stable version of Jenkins? ›

The Jenkins project produces two release lines: Stable (LTS) and regular (Weekly).

How do I check my git Jenkins plugin? ›

Following is a step by step process on how to Install Git plugin in Jenkins:
  1. Step 1: Open your dashboard. Click on the Manage Jenkins button on your Jenkins dashboard:
  2. Step 2: Find plugins option. Click on Manage Plugins:
  3. Step 4: Once the plugins have been installed, Go to Manage Jenkins on your Jenkins dashboard.
1 Oct 2022

What are the default plugins installed in Jenkins? ›

What Jenkins plugin have you used?
  • 1) Git plugin for Jenkins.
  • 2) Jira plugin for Jenkins.
  • 3) Kubernetes plugin for Jenkins.
  • 4) SonarQube Plugin for Jenkins.
  • 5) Docker plugin for Jenkins.
  • 6) Maven Integration Plugin for Jenkins.
  • 7) Amazon EC2 Plugin for Jenkins.
  • 8) Build Pipeline Plugin for Jenkins.

What is Maven plugin for Jenkins? ›

What is Maven Plugin for Jenkins? The Maven Plugin is a plugin that provides the capabilities to configure, build, and run Maven-based projects in Jenkins. This is a must pre-requisite for the integration of Maven with Jenkins.

How do I update my Jenkins credentials plugin? ›

From the Jenkins home page (i.e. the Dashboard of the Jenkins classic UI), click Manage Jenkins > Manage Credentials. Under Stores scoped to Jenkins on the right, click on Jenkins. Under System, click the Global credentials (unrestricted) link to access this default domain. Click Add Credentials on the left.

How do I download Jenkins performance plugin? ›

Install the Jenkins Performance Plugin on the machine with Jenkins. Install Taurus on the Jenkins machine.
...
Running Your Performance Test on Jenkins with Taurus (Option 2)
  1. Set up the Taurus config file. ...
  2. Set up the Performance test result report. ...
  3. Review the new Performance Trend page.
18 Jan 2021

Do we need to restart Jenkins after installing plugins? ›

If you're asking about how to install a plugin you personally developed without restarting, not a plugin from the plugins repo, you can do so by going to: Jenkins>Plugin Manager, click the Advanced tab. There you'll see "Upload Plugin". Upload the hpi file for the plugin. You don't need to restart the Jenkins.

What is LTS version of Jenkins? ›

Several companies maintain their own private branches off of Jenkins for stabilization and internal customizations. We encourage everybody to shift a part of the effort to this release line. This is called the Jenkins Long-Term Support release, or LTS.

How do I check my Jenkins LTS version? ›

So, a simple curl -Ls https://updates.jenkins.io/stable/latestCore.txt should do the trick of retrieving the latest LTS version number. This should be the accepted answer. The currently accepted answer relies on a specific HTML implementation in order for its various pipes and sed to work.

What is difference between job and pipeline in Jenkins? ›

The main difference between any job and a Pipeline Job is that the Pipeline Scripted job runs on the Jenkins controller, using a lightweight executor expected to use very few resources in order to translate the pipeline to atomic commands that execute or send to the agents.

Where can I find Jenkins CLI jar? ›

Visit Jenkins page from http://localhost:8080/jenkins/cli/ . You'll see a command like java -jar jenkins-cli. jar -s http://localhost:8080/jenkins/ help . So, a jar file needs to be download.

What is Jenkins configuration as code? ›

The Jenkins Configuration as Code (JCasC) feature defines Jenkins configuration parameters in a human-readable YAML file that can be stored as source code. This essentially captures the configuration parameters and values that are used when configuring Jenkins from the web UI.

How do I transfer plugins? ›

All you need is a USB drive or an external hard drive. Simply copy the plugin files to the drive and store them somewhere safe. If you ever need to use the plugins on another computer, simply copy them back to the appropriate location on your hard drive.

Can you transfer plugin Alliance plugins? ›

If you want to transfer or sell your older licenses, you need to activate them as Plugin Alliance licenses first, then you can transfer them to a different user account.

How do I update Jenkins? ›

To upgrade Jenkins without losing your data, download the latest jenkins. war file, copy it to /opt/bitnami/jenkins directory and restart Jenkins. It is recommended to create a backup of the previous jenkins.

Is Jenkins TCP or UDP? ›

Jenkins listens on UDP port 33848. You can either send an UDP broadcast packet (targeted to 255.255. 255.255) to this port, or you can send an UDP multicast packet (targeted to 239.77.

Is Jenkins 32 or 64 bit? ›

Jenkins installs by default in the 64 bit programs folder rather than in the 32 bit folder.

Can I run Jenkins without Tomcat? ›

Jenkins is typically run as a standalone application in its own process with the built-in Java servlet container/application server (Jetty). Jenkins can also be run as a servlet in different Java servlet containers such as Apache Tomcat or GlassFish.

How Install all required plugins Jenkins? ›

Installing the plugin manually

Then go to the Jenkins dashboard and select Manage Jenkins. Step 2: Select Manage Plugins. Step 3: Click on Advanced tab and on the upload plugin section browse the downloaded plugin's location. Step 4: Then click on the Upload button.

How do I know if Jenkins plugin is installed? ›

From the Jenkins home page: Click Manage Jenkins. Click Manage Plugins. Click on the Installed tab.

How do I install a plugin manually? ›

To manually add a plugin to your WordPress website:
  1. Download the desired plugin as a . ...
  2. From your WordPress dashboard, choose Plugins > Add New.
  3. Click Upload Plugin at the top of the page.
  4. Click Choose File, locate the plugin . ...
  5. After the installation is complete, click Activate Plugin.
24 Jan 2022

How do I download Git Jenkins plugin? ›

Install the Git Plugin in Jenkins

Go to “Manage Jenkins>>Manage Plugins”, open the “Available” tab and search for “Git plugin”, click on install button wait until the installation is done.

Where is Jenkins plugin CLI? ›

By default it will be in ~/. cache/jenkins-plugin-management-cli , if the user doesn't have a home directory when it will go to: $(pwd)/. cache/jenkins-plugin-management-cli .

How do I renew my Jenkins SSL certificate? ›

  1. Step 1: Obtain Domain & SSL Certificates. You should have a valid domain pointing to Jenkins server IP to configure SSL. ...
  2. Step 2: Convert SSL keys to PKCS12 format. ...
  3. Step 3: Convert PKCS12 to JKS format. ...
  4. Step 4: Add JKS to Jenkins path. ...
  5. Step 5: Modify Jenkins Configuration for SSL. ...
  6. Step 6: Validate SSL.
9 Apr 2020

How many plugins are there in Jenkins? ›

There are over 1000 plugins available in the Jenkins plugins repository, but only a few of them can be considered essential.

What are the main plugins in Jenkins? ›

Top 10 Best Jenkins Plugins for DevOps
  • 1) Git plugin for Jenkins. ...
  • 2) Jira plugin for Jenkins. ...
  • 3) Kubernetes plugin for Jenkins. ...
  • 4) SonarQube Plugin for Jenkins. ...
  • 5) Docker plugin for Jenkins. ...
  • 6) Maven Integration Plugin for Jenkins. ...
  • 7) Amazon EC2 Plugin for Jenkins. ...
  • 8) Build Pipeline Plugin for Jenkins.
18 Oct 2022

Why Jenkins plugins are not getting installed? ›

This is typically the case when plugin requirements, e.g. a recent version of Jenkins, are not satisfied. If you are using the latest version of Jenkins offered to you, newer plugin releases may not be available to your release line yet. See the plugin documentation for information about its requirements.".

Top Articles
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6030

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.