Jenkins Tutorial #2-Jenkins Installation and Setup | Configure Jenkins

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone welcome back so in this jenkins tutorial let's quickly go ahead and see how we can install jenkins and set it up on our computer now usually you won't be doing this jenkins setup on your computer or the work computer where you are developing your automation scripts so there will be a dedicated sort of a jenkins server and devops people in the project will be taking care of that installation and providing you the details of the jenkins server what your job would be to set up the jobs or the processes that you need within jenkins to do the continuous testing or launch the test cases automatically as soon as there is code check-in and run those test cases on the latest build that has been built and deployed so that will be the whole process but because in this series you'll be anyways sort of to learn you have to set up jenkins so i'll explain how you can set up jenkins on your local computer and after setting up what sort of interface you will get and from there on you can set up the jobs so we'll understand how you can set up the jobs to launch the test cases through jenkins okay so jenkins as i have explained it's continuous integration continuous delivery so i have covered continuous integration in the last tutorial and jenkins with using jenkins you can do the continuous delivery as well so cicd pipelines basically you can do so many things with jenkins right so the deployment from a different environments from test to pre-brought to production all of that can be you know automated using changing so there is a lot of capabilities but we won't be going into that much detail because that is more of a devops sort of course which i'll most probably prepare sometime later okay so it is easy installation easy configuration so lot of things so let's quickly go ahead rather than reading all of this here let's quickly go ahead and see how you can set up it on your machine so that you can start learning jenkins so go to download and what we'll do is so there are a lot of packages available so there is a generic java package which will basically be going ahead with and pick up the stable version always so there are other regular releases that happen but that might not be stable so pick up this table late the long term support stable version and i will pick this war file because the installation of basically setting up the jenkins if you're using the war file will be same for windows and mac or other computers right so simply download it so it's like 68.9 mb file so it will take some time so once the download is finished you'll see that jenkins.or file in wherever you have downloaded it okay so now in order to set up jenkins you simply go to this particular location where you have this war file will open command prompt right and we'll run the command to start right so we'll simply go to the documentation so we'll say installing jenkins all right so the war file right we are setting up the war file so go to the war file you will see the prerequisites there okay and in terms of software requirements you will see the java requirements that's what java needs to be there on your computer so we'll see that the jre 8 and 11 are the only ones that are supported so 12 13 14 15 16 are not supported and i have java 14 on my machine so this is not going to work on my machine until i downgraded to java 8 or 11 so i'll do that quickly but in order to set it up first thing you have to see the requirement so java 8 and 11 right and there is nothing like java 7 and 9 and 10 are not supported so only 8 and 11 are sort of supported so you have to just check what java version you have for java installed and if it is not 8 or 11 you have to basically install 8 or 11 before you can proceed now the next step is basically once you have these prerequisites to set up this war file what we have to do is you have to go back and you will see that we just have to run this command java hyphen jar jenkins dot what okay so we just have to say java minus jar and then jenkins dot work okay so by default jenkins starts on port 8080 if you go to the documentation here you will see that it starts at port 8080 but in case your machine on your machine this port 8080 is being utilized by some other processor application then you can specify the http port so hyphen iphone http port and specified by the the port on which you want to run the jenkins server okay so you can say something like that http or and then i can specify 1990 in this particular case and the server will start on the 1990. so if i'll run it will give me error because you know only 8 and 11 are supported so let me quickly install java 8 or java 11 and then i'll run the server and we'll continue with the jenkins configuration i'll pause the video so let's go ahead and search jdk 11 download and i know that my machine is 64-bit operating system so i'll go to this java archive downloads from oracle and here if you scroll down you will see that windows 64 installer simply download this accept and so you need to have an account here so if you do not have the account create an account and then download this particular exe file okay so it's an exe right so we'll simply download it and then execute it so let me create an account and then we'll continue so once you have created and verified your account and downloaded the file you will be having this jdk 11 right and just double click on it to install now this i have already covered how to install java previously but i'll anyways cover as part of this video as well so simply click on yes it's pretty simple process that we have to follow next and then development tools just keep default will be installed to program files java if you want to change it you can change it so it's jdk that's the folder i'll keep it default and this is only in case you do not have the compatible version of java on your machine that needs to be there for jenkins server to run if you have java 11 already so you can check java hyphen version and if you already have the compatible version 8 or 11 you do not need to perform this java installation stuff so this has been installed successfully and then we can simply close it okay so let's quickly go ahead we'll say java hyphen version i am pretty sure it will still be 14 because the java home is still pointing to this version 14 right so how we can go ahead and change the java version okay so we'll simply go to the right click or just go to settings so we'll simply go to search for pc right click properties go to advanced system settings environment variable and you'll see java home is currently pointing to jdk 14 right and we want to use java jdk 11 okay so where is my jdk 11 installed it was stored in program files java and then there was a folder so let's see let's browse the directory from here so it was in c program files it was java and 11 right so that's what we have to basically set our home java home directory to okay so select jdk 11 so even though both versions are there this is what now jenkins will be referring to okay so i'll just hit okay and click ok and okay now close this let me close the command prompt and open command prompt again okay so in the downloads we have this jenkins dot bar as well so i'll open command prompt from here and now let's see java hyphen version what's the version okay so still it's showing 14 oh okay i got the issue sorry so let me go to the properties again we change the java home but we didn't put it in the path variable that's strange right so we we change this java home but we have to set up the path variable right so we have to put the let's see if i have something like the direct jdk okay so you'll see that it is the java home is already there but in the path it is still pointing to this 14 right so i have to remove this okay so what i'll do is i'll delete this and let's first add so what i'll do is i'll add the so we know that there is a java home variable right and then i need to refer the bin within java home okay because here you'll see that we are referring to jdk 14 pin so now i can delete this so that it can refer to the 11 okay so let me delete this one okay now it should close the command prompt reopen and that's strange okay so let's go ahead and check again there's something that looks like has been set up previously so in the path variables and that is basically that is referring to so we'll go to path again because we have fixed this java home and then in the path as well we have set this tower home so yeah this is the one right so this is something which has been set up if you see that c program files oracle java java path and if i copy this so bear with me guys i'm sure that this is going to help you to debug any of these sort of issues yeah you'll see that in this particular folder this is when the previous installation happened java.exe has been placed here and this is this usual you know installation so if there are multiple versions then we have to remove the reference of the old right so you to remove the reference the only way is to remove the path variable so that the old reference is not referred anymore so this is still the java 14 path so i'll remove that okay now there is no reference at all for so java home is referring to 11 and our home bin will be for the binaries of the version 11 of java so now it should be fine hopefully let's close the and we'll go to downloads again and open the command prompt right you'll see that now it is 11 java version is 11 okay so now we will start our jenkins server so this setup till now has been basically to fix our java version because only 11 8 and 11 are being supported so we'll simply say java minus jar and then we'll start the jenkins server and i will start it in on the port 1990 okay so you can just start it on 8080 as well but i will start on 1990 and you will see that it started it is running and for the first time it might take some time so please be patient let the server start okay so once this has completed right so jenkins initial setup is required which is very important and an admin user has been created and password is generated so admin user is created and this is the password so please use the following password to proceed with the installation so copy this right and you will see that it it this password is found in this particular c users jenkins secrets right so initial password so we'll go to this particular folder in the downloads and it is in the users right so we'll say see users then it is dot jenkins and then it is in the secrets and secrets initial admin password right so this is the location so we'll go to this secrets and you'll see this is the file here okay so we'll simply and we can copy this password okay so the jenkins server let's see where what the message is so you'll see jenkins is fully up and running okay so now let's go to the documentation and see how we can access so we can access using this localhost 8080 so we'll simply access it on 1990 because i have started the server on port 1990 localhost port 1990 and during the initial setup it will ask for the password that has been generated so administrator password is present here that's what we have already seen so we'll copy this password and continue with the setup so customize jenkins so you can select the plugins to install or you can install all the suggested plugin i'll go with the simple way install statistic plugins and it will install all the suggested or the default plugins that are basically suggested by jenkins so it takes some time so once it is finished then we'll proceed okay so once the plugins are basically installed and set up you will be redirected to this particular page where it will ask to create the first admin user if you want you can create but i'll skip and continue as admin right so you don't need to create for learning so we'll just skip and continue as admin and then this is the url right we'll just keep it as is and we'll simply say save and finish okay so the jenkins setup is now complete and we can start using jenkins so click on start using jenkins and this is how your setup will look like and this is the home page of the jenkins after all the configuration setup has been done okay so you will see that now we can start building our software project and set up the distributed build so we'll we'll continue from here so this is the basic part of the setup and in case you don't have the compatible java version i have already covered that as well as part of this tutorial so you shouldn't be having any problem in setting up jenkins and coming up to this particular point where we are on the jenkins dashboard so that's all for this tutorial in the next one we'll start understanding how we can start creating or using jenkins for our test automation script so i hope this was helpful thank you very much for watching
Info
Channel: Software Testing Mentor
Views: 567
Rating: undefined out of 5
Keywords: jenkins tutorial, jenkins tutorial for beginners, install jenkins, jenkins installation, jenkins installation in windows, configure jenkins, jenkins introduction, jenkins tutorial step by step, jenkins.war, jenkins war installation on windows, jenkins.war download for windows, jenkins installation in windows step by step, how to install jenkins on windows, how to install jenkins on windows 10, jenkins configuration, jenkins setup, jenkins setup on windows
Id: O6BJEptOjjs
Channel Id: undefined
Length: 13min 53sec (833 seconds)
Published: Tue Oct 12 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.