How to UPGRADE Jenkins | Upgrade using WAR file | Upgrade using yum | 2.235.5

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in this video we are going to talk about how to upgrade jenkins first we can go to manage jenkins section and we can see that jenkins itself is displaying it's complaining actually about some plugins that need to be upgraded as well or uh those are compatible with the newer newer version which is this one we are going to install the version 2 2.235.5 my current version is this one 222.3 so there are a couple of ways to upgrade jenkins one of them is by running sudo june this flag update jenkins this will automatically download the package and install it in the system but i will do it by downloading the war file as you can see in the bottom of the mod of the page is listed the jenkins.org for the newer version so i'm going to download this one and i'm going to install it by using this okay i'm going to pause the video and when the download is completed i will resume it okay it is completed so i'm going to my desktop and i'm going to list the jenkins warp this is it okay so to to know where the the current jar file exists we need to go to manage jenkins which is the section that we're already in and scroll down to system information and here we have a section executable war and this is a path in my case is user lim jenkins so in the terminal i'm going to list that one you should leave jenkins okay as you can see uh this is the yard one the the the war file for jenkins and the permissions are different the the owner and the group are different so we need to make some changes the first thing we need to stop the service system ctl stop jenkins okay we are stopping the application if we go back here it's nothing now okay then i'm going to back up my current war file in a different directory so i'm going to copy user leave jenkins user leave jenkins in the jenkins dot war file i'm going to copy it no not here i'm going to copy it in tmp okay if i list tmp jenkins oh there are a lot okay we have the jenkins war okay let me check the permissions for both so i'm going to change this ch on i'm going to change the ownership to root i need to do with sudo because i'm not the owner okay now we have this one and the permissions should should change as well okay i'm going to update the permissions which should ch mode 644 for jenkins war okay as you can see the the package that i'm having in my desktop has the same group the same owner and the same permissions that the one in user lib jenkins so i'm going to move it this one to user leave jenkins okay and i'm going to list this one okay we have the the latest one and i'm going to start the service now okay it will take a few seconds let me go back to the browser and i'm going to load it okay i will pause the video and resume when this process is up and running okay genkins is back let me sign in the user should be the same so [Music] no changes on the credentials here is my dashboard also all my jobs remain the same and as you can see at the bottom this is the new version we have upgraded jenkins to the latest okay we go back to the manage jenkins section okay we can see the view is a bit different now is not grouped as a list but a subgroup was subset by the which each organization method they decide system configuration hidden security status information troubleshooting tools and actions uncategorized okay i'm interested to go to manage plugins because we may need to update some plugins okay okay i'm going to update okay i'm going to update the plugins that i usually use which is the tokens credentials docker yeah email extension of course git github along with git appy the unit matrix pipeline yeah pipeline declarative as well and groovy here declarative pipeline job rest api script security terms server trail api okay i'm going to download and install after restart okay as you can see is installing and downloading the plugin that i've selected and after that i'm going to restart jenkins and i will pause the video and reason when every every plugin is updated okay jenkins is back so i'm going to sign in okay go back to manage plugin section this is uh how we can upgrade jenkins in a very easy way because we just replace a war file just with a simple mb command and we have the new features but you always remember to to have a backup for the previous wire in case something goes wrong with the newer version so you can roll back immediately with almost zero downtime okay this is all for this video i hope you enjoy it please subscribe to the channel stay tuned thanks
Info
Channel: HAH - Tech
Views: 1,448
Rating: undefined out of 5
Keywords: Como actualizar jenkins, how to upgrade jenkins, update jenkins to the latest, war file, upgrade using war, ugrade using yum, yum update all, jenkins, cicd, devops, server automation
Id: HsuVJvN5ETQ
Channel Id: undefined
Length: 9min 37sec (577 seconds)
Published: Thu Sep 17 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.