How to Setup Jenkins on Ubuntu Instance in AWS Cloud | Configure Jenkins using 17 on Linux Instance

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome back in this video we are going to learn how we can configure genkins on U 22204 easy2 instance so as we all know that Jenkins is going to stop uh supporting Java 11 starting from August 7 2024 so we have to start using Java 17 going forward uh so that's the reason why you know I'm going to show you all how we can configure genkins on W2 22.4 using Java 17 uh this is pretty straightforward I don't any uh major uh you know instruction change as you compare with the you know previous installation so this is actually pretty straightforward uh so let me take you to Google search so if you just say install genkins on wub 22204 so obviously right you're going to see several uh links but if I take you guys to Jenkins website and if I select Ubuntu so basically these are instruction for configuring uh genkins on wub 2220 for okay uh but we are going to use like I said I know Java 17 as you can see here right is no longer included so it is actually a good idea to start using uh you know Java 17 or open jtk 17 all right so that's exactly what we are going to do in this short video and if you see the prerequisite yes I do have E2 instance configured um you know in AWS cloud and I'm also connected uh using my uh it I'm connected to that e instance So currently this does not have anything installed you can see here I don't have anything installed at this moment Java or MAV so nothing is there so I'm going to show you all right now you know how quickly we can uh configure genkins on this E2 instance so let's get started so as we all know that genkins is a Java based tool so we need to start installing uh Java but before that let me start performing some update here maybe I can start with setting up the host name let me exit and then I'm going to log back again uh just to make sure that our changes are being affected so clear the screen and then I'm going to perform uh update first since this is a brand new You2 instance I wanted to make sure that all the software packages are you know up to date uh that should not take uh lot of time and then I'm going to go ahead and then install uh you know open jdk 17 or Java 17 so copy this instruction this is pretty straightforward uh let's go ahead and then do that and then if you wanted to verify the Java version you can copy this command and then go ahead and then execute that there you go so now we have Java 17 right now perfect so we are good with that let me clear the screen and then I'm going to go ahead and then install Maven as well so as you all know that Maven is a Java based build Tool uh so Jenkins would use Maven uh when it comes to building any kind of a Java based application of course you can also use uh you know gradel or apachean but I would prefer to use Maven and let's quickly check the uh version for Maven as well perfect so we got this one 3.6.3 and then you can also see that this is using uh Java 17 perfect so so far so good and then we need to uh start installing genkins so like I said there are so many ways you can find out the steps you can use chat GPT or you can directly go to Google Search or of course you can also directly come to this website uh so these are the instructions uh but just to kind of explain you all this command one by one so we are downloading the keys from the Jenkins website and then we are appending Debian package repo address to the system and then finally we are performing update and then you can start installing genkins by executing this command okay so it's up to you you can you can go to this website and then copy all these commands or if you want to execute one by one that is totally fine but let's let's start following the instruction you know in my website uh so let me go and then copy this command which is going to download the keys and then we are going to uh you know open the repo address to the system deban package repo address let me go ahead and then copy and paste that perfect so make sure you copy uh the whole instructions like that don't don't try to copy line by line okay and then let's start performing an update and then the next command would be start uh you know installing genkins so I don't want to say minus y so I don't want to manually type yes perfect and then I'm going to uh pick up the public DNS name of my ec2 instance so that's the public DNS name make sure you all open you know port 8080 in the security firewall rule so I'm going to verify that real quick I did open that there you go you see here so that's a default port number for Jenkins so that is actually good so I have the public IP address let me go back to my my instruction okay so this is still setting it up so as soon as this is up we are going to go ahead and then copy the public DS name all right so genin got installed let's go ahead and then access in the browser there you go uh so initially the password would be stored in this particular location so I'm going to get that sudo cat so that's a default one time Jenkin admin password so get that let's paste it there and then click on continue uh I don't want to save that password let me enable that okay uh now let's go ahead and install suggested plugins because you know genkins would need those plugins in order to integrate with uh you know any other uh any the tools such as sonar Cube or GitHub or bitb or Nexus or artifactory or slack any tools you wanted to integrate we have to install those necessary plugins awesome so the plugins got installed let's go ahead and then set up uh some admin username so I'm going to go ahead and set up everything as admin ad again I I leave it to you guys uh you know you can set up any any any uh you know you can provide your email address but I'm not so much worried about it so I'm going to provide some random email address but I'm not going to use it so go ahead and then click on Save and continue save and finish and then start using genkins so yeah so that's it guys you know that's how you would configure genkin on ub2 22.4 ec2 instance uh you using Java 17 thank you for watching this video
Info
Channel: DevOps Coach
Views: 724
Rating: undefined out of 5
Keywords:
Id: _WKuMm2zUoU
Channel Id: undefined
Length: 7min 4sec (424 seconds)
Published: Thu Jan 18 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.