Jenkins setup on Windows OS | Create first Jenkins Job

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome back I'm Rin Mishra and I welcome you all in this video we will learn how to install Jenkins on Windows and create a username and password for Jenkins server and create the first Jenkins job so just before we do the installation configuration of Jenkins on Windows let us understand what is Jenkins server so Jenkins is an open source automation server that is commonly used for continuous integration and continuous delivery of software projects so continuous integration and continuous delivery also refers as cicd okay so Jenkins helps automate various task related to building testing where you will be actually executing your automation script and deploying software making it easier for development teams to collaborate and deliver code more efficiently Jenkin support a wide range of plugins like uh your there might be some uh there will be U plugins to you know pull the code from the code repository like get uh lab GitHub your perforce SVN and there are so many uh plugins are available with the Jenkins So based on your need uh you will be actually configuring those you will be installing those plugins with the Jenkins okay so in the next slide um we have this link basically so ad Optimum adop ad optium is the site uh using which you can uh download the Open jdk and all you have to do to have Java uh 8 or later right to have Jenkins installed and configure on your system so I would suggest you to you know install the latest version of java from the site which could be Java ja jav open jdk 11 or open jdk 17 or 21 or um and so on like and make sure just it is more than you know Java it okay because because you are going to install uh latest version of Jenkins and then we will go to the this site to download the Jenkins binary okay so jenkins. download so let us go to that let us go to that um site so Jenkins or you can search for that Jenkins download for Windows it will take you to that site only for Windows okay so you can go to this site and search for Windows option so in this LTS okay I'm going to select windows so it will download the Jenkin binary so let me see if I have I have already cre downloaded it so it is available inside the download I will click here to open the Jenkins I mean download for that J I mean download folder and and here you see right I have already uh downloaded this binary so I'm going to click on this and just before that uh let us see what is the version of java installed in our system so I will simply execute Java hyph version to see the Java version okay so it is 17 open jdk 17.0.2 okay so it is installed on my system so let us go back to the installer Jenkins installer so I'm going to install Jenkins add this while creating the uh making this video I'm just installing Jenkins 2.4.1 2.41 4.2 okay version of Jenkins I'll click on next I will go with the default location so I'm going to install Jenkins inside the program files okay you can change the uh location if you want okay so next next is log on type so if you are on the corporate Network and the domain user if you know so you can uh choose to go with this option otherwise you can select this run Service as local system so since I'm going to install uh jenin on my Windows 10 laptop okay Windows 10 so uh I can I can simply use this run Service as local system okay and you can do p uh Port test if this particular you know port 8080 is free or not so you can see it is free okay so I'm going to click on next and you can see it is fetching the Java version okay which I have shown you so it is um it is there in the system variable okay system environment variable just make sure it is installed and it is added as a Java home because it is pitching based on that Java home value okay which we have already set here in the system variable so Java home you can see I have set it to jdk 17.0.2 which we we have already seen here okay so for now I will close this close this cancel and cancel let us go back again to this Jenkins installation window and I we will close this also click next and just uh I don't want the service to be installed or you know started after the installation of Jenkins so I will click on this entire feature will be unavailable and I will also just select I mean just uh uh I mean we have not selected these two things okay start service and firewall exception so I will be configuring myself start service okay after the installation of Jenkins I will be uh providing my paths and everything right in the Jenkins file so which is why I have just not selected this option okay so after the installation of jenin I will be starting uh Jenkins manually I will click on next here and within couple of second it is going to install the Jenkins so you can see click on you can click on finish and you can go to the program files to see your Jenkins folder so here your Jenkins is installed you can see your Jenkins War file Jenkins application and the Jenkins configuration file and this is Jenkins War okay so I'm going to just edit this file with the notepad++ or any editor and wherever you see this program uh data you can update that with the program files so this is going to be my physical location in my C drive right so where my jenin is installed and the Jenkins v file is present so I'm going to choose this program data I will replace this again so wherever you see the program data you can replace that with the actual path which is C program files right because you have installed your Jenkins inside this and here also so inside this your P ID of the Jen will be Jenkins P ID will be stored also inside the Jenkins okay once it is started it will generate the P ID and that P ID will be kept inside this jenin folder I'll save this and I will go to the services panel now okay so let me see let me start so it is going to start the Jenkins you can see it is started okay it is running and then I'll go to the browser you can open Firefox uh age or Chrome and I have launched Chrome and I'm accessing um Local Host 880 which is the Jenkins URL and the port so it is going to take time uh because it is the first time uh you're going to access the Jenkins so just have little patient and it will be done in couple of [Music] seconds see please wait while Jenkins is getting ready to work just have little more patient and then it will I'll show you this screen getting started okay so where um if you are installing it for the first time it is going to you know give you the password inside this path okay so let us go to this path Jenkins and Jenkins secret admin so the first time password will be this and later you can reset the password okay so I'm going to go to this secret and the initial admin password I will Ed it I'll copy the pass password and use it in this window okay and click on continue so you can see I get this window after that okay so install suggested plug-in so I'm going to click on this or select plugins to install so if you are installing it for the first time you have to go with this so that uh almost uh Jenkins will get those uh manual set of you know plugins ready for you okay so that you can create Jenkins job and all okay so I will go and choose this I will go ahead with this option so it is going to take time so just have a little patient I will pause and we'll come back in couple of seconds Okay so until this gets ready it will try to install download all the plugins and install so I will pause the screen for I'll pause the video for a couple of seconds until this gets downloaded so if you notice uh Jenkins is installing these plugins pipeline git Al app okay folders time ovas markup formater GitHub Branch store SSH build agents mailer and Gradle right uh credentials binding everything for you right for the first time users of uh jenin server later you can install more and more plug-in based on your requirement yeah so uh all the plugins required plugins are installed with the Jenkins and uh you can create the first admin user okay I can give aset adaa as a username and I can choose my password okay you can give any name of your choice and uh just make sure both the password matches okay and give you name and then I will choose the email address okay and I will click on Save and continue so this is going to be my Jenis URL okay so which I am already accessing okay just remember your username and password save and finish and start using Jenkins your Jenkins is ready now right cool so this is how you can install and configure the Jenkins and the create username and password for Jenkins and if you want to you know change the username and password you can simply go to the manage Jenkins and go to the credentials and the add some more you know uh credentials here how you would add you have to go to the system add domain or you can simply create username and password okay so right now now I'm just I'll be using U SD which is my uh username okay and this is my display name which I have entered and now you can create a new job okay so you can click on new item that is how you can create a new job in Jenkins or you can click on create a job okay so whatever works for you so I'm going to choose write um first job and I'm going to choose freestyle project okay so this is going to be my first job and I will create and I will show you how to run it and uh how to see the console if the job is successful after the successful after the job is Success successfully you know built or uh you know uh executed we should be able to see the result also right so for now what I can do I can go ahead with a build step I can choose execute Windows batch command and here I can give some Windows command like Eco I can type this is my first Jenkins job and I can give date and time stamp also if I want okay going forward I will tell you like how to U execute your automation script from the Jenkins okay how to write how to give you know how to execute your ant command and other things right I'm going to teach you all this for now uh I'm going to you know uh print this this is my first job after the execution of the this job I should see this in the result okay so for now click on apply and save it and now your job is ready you can see your job you can see your dashboard and this is your job just click on your job and build now okay and if there's nothing wrong with your job it will be complete and you can see this green and success right so you click on here and go to the console output and you should see the a result here okay so this is my first Jenkin job which I have written and it is system is fetching the date and time also okay 10:56 is the time right now okay so this is how you can uh create the install the Jenkins on the windows and create username and password for Windows and create the first job uh first Jenkin job I hope uh you have liked the explanation and learned from this video please do like and subscribe to my channel and hit the Bell icon for uh more updates and share this video with your friends and also share the comment in I mean feedback in comment section I will see you in the next video Until then keep learning and thanks for watching
Info
Channel: SDET Adda For QA Automation
Views: 1,138
Rating: undefined out of 5
Keywords: Learn Jenkins for beginners, Prerequisites for using Jenkins, Download and install Jenkins, How to access Jenkins, Jenkins setup and configuration, How to create 1st Jenkins Job, Run Job and see results, jenkins download for windows, install jenkins on windows, Jenkins deployment, Jenkins Tutorials, Jenkins Tutorial Videos, Jenkins Full Course, Jenkins CI & CD Tutorial For Complete Beginners, Jenkins Full Course 2023
Id: j4zOi600Cnc
Channel Id: undefined
Length: 16min 20sec (980 seconds)
Published: Wed Oct 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.