About SB Developer
SB Developers is one of the leading web development companies in India that has been offering high-quality, trustworthy, timely [...]
Jenkins is an open source automation process by which we can run automation to build and deploy code. In previous article we have discuss how to install jenkins in ubuntu. Today we are going to discuss how to upgrade it in latest verison. Please follow the stp by step process for the same.
1. First need to check what is the current version for jenkins. For that click on http://jenkin-server.com/about
2. Now we have to find the latest stable version jenkins for that click on https://www.jenkins.io/changelog-stable
3. Always run below commed to make all dependecy uptodate in ubuntu
sudo apt-get update
4. Now login to jenkins server through SSH and locate war file. Its will display the path of that
locate jenkins.war // OUTPUT : /usr/share/jenkins/jenkins.war
5. Now we have to copy the existing war file for backup
mkdir /jenkins.bkp; cd /jenkins.bkp
cp -p /usr/share/jenkins/jenkins.war jenkins.war.bkp
6. Download Jenkins latest version or any specific version using wget and copy the downloaded war file in previous found path. Brefore replace don't forget to stop the jenkisn sever
sudo service jenkins status
wget https://get.jenkins.io/war-stable/2.289.1/jenkins.war
cp -pr jenkins.war /usr/share/jenkins/jenkins.war
sudo service jenkins start
7. Finally restart jenkins server and check the version in http://jenkin-server.com/about. Suggested to update the plugin to support the latest jenkins.
8. Some time you may face the issue to update plugins Like Failed to resolve host name updates.jenkins.io. For that suggested to update the nameserver. Below i have added some free high speed nameserver
sudo nano /etc/resolv.conf
If you find our post usefull for you, please click on like button. We will share you more commonly usefull article soon