Deploying war file in tomcat using Jenkins Freestyle job - TechWorld with Murali - Jenkins Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign Tomcat using gen kills okay earlier we defined manually right the particular particle in Tomcat instead of that one how we can do through Jenkins okay let's let's say the demo for that one I have already one application uh GitHub reposited that name is web iPhone application you can configure this one and we can it will be generated Warfare if you see here inside the palm.xml it will be generate the warpath we can deploy this vertical in Tomcat okay for that one we have to we have a free requests one is we have to install the git plugin and also we have to install the man plugin okay and also we have to install the Tomcat plugin that is defined container plugin and also we have to install the tomcat and it should be up and running if you up there here the Tomcat is installed it is up and running now what I'm doing here I'm going to manage Jenkins okay manage plugins here I am going to verify first whether git is installed or not Maven is installed or not okay get if you up there here it is already installed and also I'm saying that Maven Maven is also already installed my team will get the earlier uh when you configure Maven project right we have installed right fine now I am checking that Tomcat Tomcat PC here deploy to container plugin is not there go to the available station here you can type it here reply to container clicking deploy to container plugin if you see a deploy to container plugin using this one you can apply your particle in Tomcat you can select here install without restart okay now it is going to install the particular plugin it may take a little bit time here the plugin is installed okay now I'm going to manage mkins now we have to define the command configuration inside the global tool configuration plugin option come down here we earlier video we already set up at Maven project the name I have given Maven iPhone 3.8.6 I'm choosing install automatically it will be installed automatically that particular 3.8.6 version okay now we can create the project the project is I'm going to create one project that soil cream is applied to reply the worrying sounds okay I am creating the project uh job name is first step is we have to configure get right select this git and you can give the git URL this is our project okay you can select the code here we can select the particular HTTP copy this one and paste here and it is public so we don't require to provide the credentials in case if it is private we should be provide the credentials remember for our practice purpose we are keeping this reposit is a public but in real time we will be keeping always it is private only okay I have set up the credential now come down here the branch is Master right if You observe here the Brand's name is master now come down here I'm select I'm adding selecting this one add tension to the console output it means inside the locks we can able to view the time when it was run okay then come down here build station here you can select the invoke top level management targets here you can select the maven version here it is visibling right where we configure inside the global tool configuration we have given the name right that name you can enter view here okay select the particular version here goes into nothing but life cycle build life cycles okay here I am giving clean install you can give the space and give that particular command okay now we have defined that Maven now coming to that uh this particular Tomcat configuration it is available in post double session only okay possible action click this one here you can see are deployed to container plugin yeah if you see here deploy bar here to The Container Okay click this one here you can give the war or year file part here what I am giving here starts the slot star dot bar what is the meaning of this one start the star star mean whatever path is available okay in this particular job inside the target directory we have a the path enter it will be pickup default and then start.war means whatever the name of that particle bar doesn't matter I given the star it will be take okay in case if you have I mean if you have the powerful name exact water column you can provide here that is also pan but if you give the star it is better because sometimes we may change that particular powerful name right again you have to change it here instead of that one if you start that one any name that particular extension bar it will be pick up okay then contest path you can ignore not required and here container here add container here very important our Tomcat is 7 right you can select here if you see here concat 7 select this one here you have to create the credentials what is the Tomcat username password lab set up a tomcat username password is Tomcat Tomcat okay now I'm declaring here add Jenkins here username with password I'm giving here Tomcat username is Tomcat okay password also thank you and here I am giving Tomcat username password you can add now you can able to see here the particular term calculated okay now here you have to provide the Tomcat URL what is the Tomcat URL this one right you can declare the IP okay here HTTP the public AP colon 8 0 8 0 remember in real time you may not use IP addresses we may use like like this example I can tell uh example factorial with mooli.com with modeling.com this is the one company okay we'll be create like uh uh in in real time we'll be create that URL https colon slash class okay dot equivalently.com you can access like this instead of giving the public API or private IP we can give the fully call per domain name okay this is the URL here we are given https means securely currently our practice purpose we are not giving any https but in real time it should be in HTTPS only okay now you can give it here the URL you have given now you can apply save it now you can build now what will happen let's say build the particular project now if you go check the logs now if you see here it is going to delete now okay now if you see here I'm going to install it is done okay it is Oracle it is copied to the particular inside dot into directory now it will come to here deployment part okay this particular vertical it is deploying to The Container I mean I mean to say tomcat seven we have configured counter seven right we are first system we are deploying red that's why it is showing right it is not deployed first time we deploy right that's why it is showing earlier we haven't deployed it that's why tissue is not dead plant now it is deploying the particular Warfare whatever generator now what I'm doing here if you go and verify here you can refresh this page now if you see here your publication is game okay if I click this web application you will get the output if you see here hello world this is the default application okay I hope you understand that how you can deploy instead of being manually deployment you can do it through Jenkins job again I am going to deploy what will happen let's see I'm again I'm going to do Builder now Okay now click this one earlier it was showing not a plan it is deployed right now if you deploy again what will happen it is showing read applying redeploying means first it will be under plus that particular worker then it will be deploy the new version okay earlier one it will be underapply unemployments it will be removed at particular deployed one then it will be deploy the new version I mean new version okay what is it this is the process of deploying the particular verbal in Tomcat I hope understand that if you have any questions feel free to comment I will try to respond as soon as possible thanks for watching this video we'll see you next video
Info
Channel: TechWorld with Murali
Views: 3,120
Rating: undefined out of 5
Keywords: #AWSinenglish, #Devopsinenglish, #linuxinenglish, #gitinenglish, #maveninenglish, #nexusinenglish, #jfrogartifactoryinenglish, #sonarqubeinenglish, #tomcatinenglish, #jenkinsinenglish, #ansibleinenglish, #dockerinenglish, #kubernetesinenglish, #terraforminenglish, #awsnetworkinginenglish, #helminenglish, #techworldwithmurali, #moole, #murali, #muralidhara, #reddy, #moolemuralidharareddy, #jobsupportinenglish, #tasksupportinenglish, #devopsprojectsinenglish, #muralidevops
Id: nfajXor9PQM
Channel Id: undefined
Length: 8min 43sec (523 seconds)
Published: Mon Mar 27 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.