37. Jenkins for Beginners - Deploy WAR to Tomcat Server From Jenkins (Automations)

  Рет қаралды 21,695

Gaurav Sharma

Gaurav Sharma

2 жыл бұрын

Join this channel to get access to perks:
/ @gouravsharma
production read use cases videos: • For Channel Member's-1...
docker playlist: • Docker tutorial for be...
ansible playlist: • ansible tutorial for b...
Linux Playlist: • Linux Commands
Docker Swarm: • Docker swarm in Hindi
Docker Compose: • Docker Compose for beg...
Kubernetes Series: • Kubernetes For Beginne...
Jenkins playlist : • 1. Jenkins for Beginne...
website: learning-ocean.com/
facebook: / coolgaurav147
linkedin: / crgaurav
email: coolgourav147@gmail.com

Пікірлер: 102
@Ravisharma-gt8zz
@Ravisharma-gt8zz Жыл бұрын
Thankyou gaurav sir from bottom of my heart to provide such awesome knowledge 🙏
@dips_07
@dips_07 Жыл бұрын
Wow so many things to learn from this project.. Thanks for the share 👏👏
@ritikakumar818
@ritikakumar818 4 ай бұрын
Woww man !!! what a crystal clear explanation!!! You literally made it all easy.
@TheTuriyain
@TheTuriyain 2 жыл бұрын
Thanks a million for making this video.
@srk9511
@srk9511 Жыл бұрын
Amazing videos you have great knowledge
@adarshsaraf9702
@adarshsaraf9702 2 жыл бұрын
thanks gaurav bhai , awesome content
@akashtomer18
@akashtomer18 8 ай бұрын
Thanks bro, appreciate your work
@subhashjha936
@subhashjha936 7 ай бұрын
Thank you Gaurav, appreciate your hard work.
@GouravSharma
@GouravSharma 7 ай бұрын
I'm grateful for your comment! It would mean a lot to me if you could share my channel on your social media platforms such as LinkedIn, Facebook, and Instagram, and give me a mention. Your support is greatly appreciated!
@rashmitewari1568
@rashmitewari1568 5 ай бұрын
Thank you very much! 🙂👍
@ganeshlad5288
@ganeshlad5288 2 жыл бұрын
nice and simple explanation
@GouravSharma
@GouravSharma 2 жыл бұрын
Thankq bhai
@hggvhhar191
@hggvhhar191 Жыл бұрын
Great sir..🥰
@gouravrelhan7372
@gouravrelhan7372 8 күн бұрын
Maza aa gya Gaurav bro, Thanks again. I am into ansible so I will practice all the basic things fisrt then I will automate my ansible project using Jenkins . Will share the steps here for others...But next video dekhi tho ab usi se try krenge...pipeline as a code concept..
@GouravSharma
@GouravSharma 8 күн бұрын
Ok I am waiting for your comment then
@gouravrelhan7372
@gouravrelhan7372 8 күн бұрын
@@GouravSharma thanks bro...👍😊🙏also I am thinking to finish all ur docker series first then will join your members playlist for advanced pipelines
@gouravrelhan7372
@gouravrelhan7372 8 күн бұрын
I have a question here..nowadays industry me knsa method follow Kiya ja rha hai...as a pipeline code or this manually created jobs?
@aatifmohd
@aatifmohd 2 жыл бұрын
Help full. Thanks
@GouravSharma
@GouravSharma 2 жыл бұрын
Thnks... Please share with your friends and teams.
@abhisheksharma-qj5gj
@abhisheksharma-qj5gj 2 жыл бұрын
great bro
@ravinaborkar807
@ravinaborkar807 Жыл бұрын
thank you gaurav
@saniakawal8807
@saniakawal8807 Жыл бұрын
If you have done this lab successfully please help me i am facing an error
@GauravChauhan-cp2cr
@GauravChauhan-cp2cr 4 ай бұрын
Need help I have added to server choice while creating the build and when the transferring the build using the SSH then the build is deployed on the both server.
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
Do we need to have JAVA_HOME set for jenkins ,if yes then why we haven't done that in these videos
@ravinaborkar807
@ravinaborkar807 Жыл бұрын
appreciated 🙏
@GouravSharma
@GouravSharma Жыл бұрын
Thanks.... Happy learning
@brijeshkumaryadav8317
@brijeshkumaryadav8317 9 ай бұрын
i am using the window's jenkins how i can perform these step can anyone help with it
@user-hc9pf9iu4u
@user-hc9pf9iu4u 3 ай бұрын
Gaurav bhai, I have a doubt. how are u able to run the shell commands in the windows PC@25:34? when i tried it it;s giveing me error , and only the command promt works for me .
@prathmeshbobhate2040
@prathmeshbobhate2040 2 жыл бұрын
Bhai everything is awesome about this playlist...if you possible just make sound of only one bell notication popup which is occured at 10:59 its bit heavy in between videos and same in other videos . Other notication and popups are very smooth. Thanks for such a valuable Tech Skills.
@GouravSharma
@GouravSharma 2 жыл бұрын
Noted
@bahubaliangadi3697
@bahubaliangadi3697 Жыл бұрын
@@GouravSharma abhi tak notified nahi hua abhi bhi bell icon kanome gunj raha hai 1 saal ho gaye
@GouravSharma
@GouravSharma Жыл бұрын
Bhai aap videos ek saal purane dekh rhe ho 😃
@mindai99
@mindai99 2 жыл бұрын
Hi Gaurav, thanks for such an awesome content. very well explained. my only question is how can I deploy env specific war? in this example you are copying the same war to both the envs.
@GouravSharma
@GouravSharma 2 жыл бұрын
Plz go through the playlist
@rajendradudhane7627
@rajendradudhane7627 2 жыл бұрын
getting error no such file 'POM.xml'
@jafarbohra
@jafarbohra Жыл бұрын
Artifacts ka use kya hai or sabhi job 1 hi machine ka artifact copy kyu kar rhi hai can anyone explain ?
@aliiraza4064
@aliiraza4064 Жыл бұрын
One of Plugin(Build Pipeline) you used has XSS Vulnerability. Any replacement of that?
@aliiraza4064
@aliiraza4064 Жыл бұрын
plz tell me
@handsomevillian
@handsomevillian 8 ай бұрын
Hello , Sir i used to send artifact over ssh to test/prod machines by installing plugins "Publish over ssh"
@sharafathussain2036
@sharafathussain2036 3 ай бұрын
me too using this
@zubandesi8052
@zubandesi8052 Жыл бұрын
Sir ,hello-world-buiild
@ghostlearners5374
@ghostlearners5374 2 жыл бұрын
Hi Gaurav , in pipeline output console is showing blank , can you provide the solution or any tips
@GouravSharma
@GouravSharma 2 жыл бұрын
Can u explain a bit more plz
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
Plz Then help me in clearing this doubt
@me_debankan4178
@me_debankan4178 11 ай бұрын
why you are doing build after testing , shouldn't it be before the build?
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
Hi,how we decide or when we have to add env variable eg java home or m2home ,eg we haven't added java home in this video but we have added maven variable .and if we have alredy hAve maven installed in our server and we have setted env variable there then do we need to set it in jenkins configuration also? When to set env varible and when to not?
@GouravSharma
@GouravSharma Жыл бұрын
Bhai aap ne ye playlist Puri follow ki hai ??
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
I have followed your playlist and i have this doubt could you please help me in clearing this doubt?
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
If we have settled env variable in our server then do we need to set it Jenkins gui configuration also?
@GouravSharma
@GouravSharma Жыл бұрын
Bhai aap ne ye playlist Puri follow ki hai ??
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
I have followed your playlist and i have this doubt could you please help me in clearing this doubt?
@lateshsharma8217
@lateshsharma8217 Жыл бұрын
when ever I am running the pipeline , cpu utilization goes to 100% in aws ec2. pls hlep wht I can do
@GouravSharma
@GouravSharma Жыл бұрын
Increase the size of instance.
@mohankumarsharma9003
@mohankumarsharma9003 Жыл бұрын
I have followed your playlist and i have this doubt could you please help me in clearing this doubt?
@GouravSharma
@GouravSharma Жыл бұрын
hehehe bhai aaega to jarur kruga :-D
@kashishpatle2794
@kashishpatle2794 Жыл бұрын
hm tomcat ka port forword krke ek hi server pr jenkins and tomcat use kr skte hai na any issue?
@GouravSharma
@GouravSharma Жыл бұрын
No issue u can...
@gsjack-pg1rq
@gsjack-pg1rq Жыл бұрын
nice content. How r u creating or installing multiple machine with different ip 13:20 please elaborate am a biginner
@GouravSharma
@GouravSharma Жыл бұрын
Go through the playlist please you will get the answer.
@gsjack-pg1rq
@gsjack-pg1rq Жыл бұрын
@@GouravSharma am watching this after watching all previous videos sir. please refer me the video or if any particular videos is there.
@kaifbhati407
@kaifbhati407 6 ай бұрын
Iso file issue ho Raha hai
@dipk.mishra
@dipk.mishra 2 жыл бұрын
Hi Gourav, I attended an interview where I was asked where do you save your artifacts so I was unable to answer that. Could you please help me with this.
@GouravSharma
@GouravSharma 2 жыл бұрын
Bhai m ne pakka kisi na kisi video me bataya hai ki aap jfrog use kr skte ho 😄
@dipk.mishra
@dipk.mishra 2 жыл бұрын
@@GouravSharma Ty
@vjdbjdread
@vjdbjdread 11 ай бұрын
ERROR: Failed to copy artifacts from Helloworld-deploy-test with filter: ** ??
@joymiah1038
@joymiah1038 Жыл бұрын
Agar Mere Application pe Postgres or Oracle database hoo..to phir hum kaya karenge? Sab lok web page ki pipeline create kaarte haib..koi bhi database ke saath pipeline deployment nahi dekhata..aisa kiyu?
@GouravSharma
@GouravSharma Жыл бұрын
Database is a seperate tier.
@joymiah1038
@joymiah1038 Жыл бұрын
@@GouravSharma agar aap database ka concept clear kor do..to humare liye bohot acca hoga..qui ki database ke bina to application nehi chala sakte na
@abdorouiss5279
@abdorouiss5279 11 ай бұрын
English version?Please😊
@vishalsaxena5081
@vishalsaxena5081 Жыл бұрын
using the same scenario i am facing this error Started by upstream project "Build-JOb" build number 11 originally caused by: Started by upstream project "A-test-job" build number 11 originally caused by: Started by user azure jenkis Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/deploy-test-env Copied 1 artifact from "Build-JOb" build number 11 Copied 2 artifacts from "Build-JOb » hello-world" build number 11 Archiving artifacts [DeployPublisher][INFO] Attempting to deploy 2 war file(s) [DeployPublisher][INFO] Deploying /var/lib/jenkins/workspace/deploy-test-env/com.springhow.example/hello-world/0.0.1-SNAPSHOT/hello-world-0.0.1-SNAPSHOT.war to container Tomcat 9.x Remote with context app ERROR: Build step failed with exception org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/lib/jenkins/workspace/deploy-test-env/com.springhow.example/hello-world/0.0.1-SNAPSHOT/hello-world-0.0.1-SNAPSHOT.war] at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:176) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1198) at hudson.FilePath.act(FilePath.java:1181) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767) at hudson.model.Build$BuildExecution.post2(Build.java:179) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711) at hudson.model.Run.execute(Run.java:1925) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:710) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:882) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:895) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:161) ... 19 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: 172.171.220.116:8080/manager/text/list at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:577) ... 22 more org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:710) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:882) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:895) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:161) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1198) at hudson.FilePath.act(FilePath.java:1181) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767) at hudson.model.Build$BuildExecution.post2(Build.java:179) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711) at hudson.model.Run.execute(Run.java:1925) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: 172.171.220.116:8080/manager/text/list at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:577) ... 22 more Build step 'Deploy war/ear to a container' marked build as failure Finished: FAILURE
@GouravSharma
@GouravSharma Жыл бұрын
Check your tomcan config plz
@vishalsaxena5081
@vishalsaxena5081 Жыл бұрын
@@GouravSharma i think agent is not connected with jnkins master that part is skip in your video nd configuration is fine i hv checked
@shivammakade1163
@shivammakade1163 Жыл бұрын
Latest version me change hai bhai thoda
@transmissiontelecom6139
@transmissiontelecom6139 Жыл бұрын
Bhai ye subscribe wala popup aata hai usme badi tej aavaj aati hai, jab hamne earpbhone lagaye ho... Apki awaj dhire aati hai. apki avaj 100% volume par sahi atti hai, lekin Ekdam se badi tej kuduk tininnnn hota jab 100% volume ho. Please next time iski volume kam krva dena.
@GouravSharma
@GouravSharma Жыл бұрын
Ha Bhai kr di thanks
@chandrabhushantiwari1741
@chandrabhushantiwari1741 2 жыл бұрын
Bhai kubernetes volume par video banaiye
@GouravSharma
@GouravSharma 2 жыл бұрын
Bilkul bnauga bhai time milte he
@shubhamdiwane6684
@shubhamdiwane6684 2 жыл бұрын
sound of this video is very low
@pankajdeshmukh3194
@pankajdeshmukh3194 4 ай бұрын
15:50:55 Started by upstream project "helloWorld-deployTo-Test" build number 15 15:50:55 originally caused by: 15:50:55 Started by upstream project "helloWorld-Build" build number 9 15:50:55 originally caused by: 15:50:55 Started by upstream project "helloWorld-test" build number 11 15:50:55 originally caused by: 15:50:55 Started by user Pankaj S Deshmukh 15:50:55 Running as SYSTEM 15:50:55 Building on the built-in node in workspace /root/.jenkins/workspace/helloWorld-deployTo-Prod 15:50:55 ERROR: Failed to copy artifacts from helloWorld-deployTo-Test with filter: ** 15:50:55 [DeployPublisher][INFO] Build failed, project not deployed 15:50:55 Finished: FAILURE getting this error please can you help me
@Yourhotshorts
@Yourhotshorts 3 ай бұрын
Muje war file to mil rhi hai but build success ni show ho ri
@bhavikvegad3449
@bhavikvegad3449 Жыл бұрын
hie !! thanks for the content but please keep mike at correct position !! coz voice is very very low 😊
@GouravSharma
@GouravSharma Жыл бұрын
Ha bhai aage se dhyan rakhuga sukhriya Bhai for feedback.... N aanee Wale video me khayal rakhuga.🙏
@bhavikvegad3449
@bhavikvegad3449 Жыл бұрын
@@GouravSharma as your contents are very helpful ,as u r putting so much effort but if there is low sound, it spoils it , hope u understand Gautav !! that's y I points it out only !! keep making contents like this , and one request - please make python series also !! just a request from one of your supporter/fan !! 🤍
@joymiah1038
@joymiah1038 Жыл бұрын
aap mujhe bata do
@bahubaliangadi3697
@bahubaliangadi3697 Жыл бұрын
simple apache amaven ke webapps me war file dalne se acces hota hain toh phir itni complicated kyun banaya bhai
@GouravSharma
@GouravSharma Жыл бұрын
bhai kya complex lg gya m bilkul b nahi samza....
@mohammadmujeebuddin4371
@mohammadmujeebuddin4371 6 ай бұрын
tomcat installation in amazon ubuntu 22.04 java -version apt update -y java -version apt install default-jre sudo apt search tomcat sudo apt install tomcat9 tomcat9-admin tomcat9-examples sudo systemctl is-enabled tomcat9 sudo systemctl status tomcat9
@prakashjadhav8279
@prakashjadhav8279 7 ай бұрын
video is verry good but the bell between video so irrhitatting😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖😖
@himanshugupta963
@himanshugupta963 Жыл бұрын
Devops sikhne ke liye ky skills ki jarurt h bhai.....coding ki jarurt h kya??
@upendrabajpai9568
@upendrabajpai9568 Жыл бұрын
no coding required
@sunitnitu1844
@sunitnitu1844 2 жыл бұрын
Hi Gaurav, you are not audible in this video.
@GouravSharma
@GouravSharma 2 жыл бұрын
Opsss.... But it's working fine in my machine....
@mdwaqqaryahya
@mdwaqqaryahya 2 жыл бұрын
Check your speaker settings bro
@virendrasharma1921
@virendrasharma1921 Жыл бұрын
Content is awesome but, Bro, this bell 🛎 tone in between videos are so irritating. I'm using headphones and listening you, and suddenly this notification sound is blasting directly to my ears. 🤦‍♂️
@GouravSharma
@GouravSharma Жыл бұрын
Ok next time
@Ravisharma-gt8zz
@Ravisharma-gt8zz Жыл бұрын
Gaurav sir pls provide a video on docker build or provide some notes on this to do this
@Yourhotshorts
@Yourhotshorts 3 ай бұрын
Bhaiya isme git n maven server par b install krna pdega kya
@GouravSharma
@GouravSharma 3 ай бұрын
Please follow the steps one by one. You'll find the order of videos on the playlists page.
@Yourhotshorts
@Yourhotshorts 3 ай бұрын
Bro site to without /app chalni chiye na
@GouravSharma
@GouravSharma 3 ай бұрын
Please follow the steps one by one. You'll find the order of videos on the playlists page.
@s.m.shabbir5604
@s.m.shabbir5604 2 жыл бұрын
‘**/*.war’ doesn’t match anything: ‘**’ exists but not ‘**/*.war’ it's showing error how to do
@saniakawal8807
@saniakawal8807 Жыл бұрын
Apka yeh problem solve hua tha ya nhi please tell me because i m facing this issue tooo
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 15 МЛН
Complete Jenkins Pipeline Tutorial | Jenkinsfile explained
35:06
TechWorld with Nana
Рет қаралды 766 М.
46. Jenkins for Beginners: Pipeline as code - Short Trick
21:30
Gaurav Sharma
Рет қаралды 8 М.
Learn Jenkins! Complete Jenkins Course - Zero to Hero
1:08:28
DevOps Journey
Рет қаралды 747 М.
How to Clean up Old Jenkins Builds
13:24
CloudBeesTV
Рет қаралды 17 М.
Linux Operating System - Crash Course for Beginners
2:47:56
freeCodeCamp.org
Рет қаралды 2,1 МЛН
39. Jenkins for Beginners: Assign a Job to jenkins slave
8:13
Gaurav Sharma
Рет қаралды 8 М.