Installing Specific LTS Version of Jenkins on Ubuntu

Install openjdk8

Execute the following commands in order

sudo apt-get update 
sudo apt-cache search openjdk

Note: Select any suitable package from the top. This documentation selects the openjdk-8-jdk

sudo apt-get install openjdk-8-jdk

Prepare your system for jenkins in ubuntu

Execute the following commands

wget -q -O - | sudo apt-key add -
echo deb binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get update

Before executing install of jenkins lets try to find the possible jenkins versions available

sudo apt-cache madison jenkins

Note: In this documentation 2.138.3 will be used

Installing Specific Version of Jenkins

sudo apt-get install jenkins=2.138.3 -y

Note: Follow this steps to install any LTS version of jenkins

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner