How to check Jenkins version

We need to check the Jenkins version for reasons such as compatibility with plugins, integrations, and dependencies. Additionally, we need to know the Jenkins version to determine if we can work with a specific Jenkins feature.

We can check for a version of Jenkins through:

  1. Jenkins UI

  2. Terminal or CLI tool.

Check for the Jenkins version through the UI

To check for a version of Jenkins on the operating system, here are the steps:

  1. Start a Jenkins instance by opening the terminal or CMD tool and entering the following command:

jenkins
  1. Once Jenkins is fully up and running without issues, open http://localhost:8080/ in the browser. If you have configured the port number for Jenkins, change 8080 to the new port number.

  2. A log in page pops up to which enter the username and password then log in.

  3. On the next page after logging in, check the bottom of the page for the Jenkins version number.

Showing the installed version of the Jenkins
Showing the installed version of the Jenkins

Check for the Jenkins version using a CLI or terminal tool

To check for the Jenkins version via terminal, open the terminal and enter the following command:

jenkins --version

However, if Jenkins is installed through a .war file, we have to use the following command:

java -jar /usr/lib/jenkins/jenkins.war --version

That’s it! with this Answer, we can check the version of Jenkins installed on the computer.

Note: These instructions work with Windows, Linux, and Mac OS.

Free Resources