Jenkins Beginner Tutorial 12 - How to do Automated Deployment (Step by Step)

preview_player
Показать описание
Today we will learn :
How to do Automated Deployments with Jenkins ?

Step 1
Start Jenkins

Step 2
Install Plugin
(Deploy Plugin)

You can also goto your Jenkins on browser and
- Manage Jenkins - Plugins Manager - Click on Available tab and search for deploy to container
Add to Jenkins

Step 3
Create a Build JOB in Jenkins

Step 4
Add Post-build Action Deploy war/ear to container
(add values to the fields)

Step 5
user username="deployer" password="deployer" roles="manager-script" /

Step 6
Run and Validate

What is Automated Deployment

How to install and setup TOMCAT

---------------------------------------------------------------------------------------------------
If you want to deploy on more than one server. Check these links

_____________________________________________________________
Jenkins Playlist:

Subscribe on:

________ ONLINE COURSES TO LEARN ________

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ JAVA ------------

------------ MAVEN ------------

------------ OTHERS ------------

------------ FOLLOW ------------
Рекомендации по теме
Комментарии
Автор

I have watched every single one of your tutorials and they are great. I would have never been able to set up Jenkins like this by myself. Thank you so very much.

madisonminnick
Автор

Great help indeed. One observation, in the post build action tab, context path should not carry .war i.e. instead of 'sample.war' it should be 'sample' only.

sanjoysa
Автор

You tutorials are really great and giving me more confidence on learning this new skill..You are doing great work in sharing this knowledge in such a way that its easy for beginners as well.. Keep doing this great work..God bless you..

RadhamaniRamadoss
Автор

Bro...I dont know how to say thanks to you! You are an awesome trainer and teacher! Your videos are all useful!

I have an obligation, could you please make a video for Jenkins pipeline with different projects streams like
Project1 -> Downloading the source code from Github,
Project2-> Compiling the source code using maven
Project3-> Analyzing the source code using sonar-qube
Project4-> Junit test
Project5-> Deploy the war file into tomcat

Thanks a lot bro for everything!

marifather
Автор

Thankyou Raghav.Very well explained.Was very useful for me.

stutigawande
Автор

Very simple and Lucid explanation of entire process

st
Автор

Thank you Raghav bro by sharing your deep knowledge. Your videos are helping a lot and getting more confidence and motivated.

ocean_explorer
Автор

A very simple scenario. Not bad for beginners

DineshSolanki
Автор

thanks a lot'' raghav"" NICE CONTENT ""and its very simply and understandable

kalyankumar-nhnq
Автор

Hi sir, Can you explain how to deploy specific jar out of set of jars from a war file. I mean suppose i have 4 jars out of 32 i need to deploy, is there any plugin in jenkins which can you know ask which jar to deploy after build is succesful. I use maven project from bit bucket and deploys on IBM server.

ModernTechies
Автор

I'm new to Jenkins, but have the task of deploying to multiple Terraform workspaces (each on for a different customer), then multiple K8s Namespaces (again, one per customer), with a central set of resources that cover all customers, like a central AD server, VPC, etc.... What features of Jenkins pipelines should I be using for this? Can setup variables to describe the differences between customer setups, then set a pipeline to deploy against each? Would folder help me, could I have a folder per customer with nested variables?

amcadam
Автор

Firstly I would say it's the best Jenkins tutorial I have seen on Youtube. Easy to understand with detailed step by step operations. Thank you Raghav! Secondly there is a minor thing that scene at 6:40 in #11 video. Context Path is filled with "sample.war" for tomcat7(Raghav used tomcat7), while it not work for tomcat9(I used tomcat9), "sample" works for tomcat9. Share with you if you use tomcat9 too.

donaldt
Автор

your teaching is like spooon feeding ...! great !..

raviteja
Автор

Hi Raghav, following the video, We are adding the sample war file in the job workspace of workspace folder in Jenkins home directory.
*But we didn't even build the project/job even once after creating the job. How the workspace got created for the job?* I am unable to see the folder (with item name) under the workspace folder. Definitely we need to build job atleast once for job workspace to create.
Please help.

bharathkoneru
Автор

Hi Raghav,

Its a great video. Just have some doubt since I have started this series.

What is the excat difference between Maven and Jenkins. I knw Maven is just a build tool and on other hand Jenkins is an continuous integration tool. Could we use both in our project. Ex. Maven for build and Jenkins for other steps. I am just making myself to claify the exact difference.

Thanks,
Poonam

poonamgada
Автор

very systematic way of teaching....keep it up

ambidextrous
Автор

Awesome explanation raghav . God bless you !!! Please post a video on integrating Jenkins repository with AWS code Deployment tool.

Rocky
Автор

Hi Raghav this video helped me more for auto deployment in Jenkins.

I have one quick question below:

I have 1 job and I need to auto deploy it with 4 different servers(common war file).In this case what is the confgration?

sanguk
Автор

Hi, very nice tutorial and great job.Can you pls provide me some info, i am using websphere server, svn repository..any link for above combination for implementing jenkins to deploy my project ear file?

manin
Автор

Thanks for posting this, great tutorial. Can you also help with steps and scripts of fetching Code(java web Application code) directly from GIT, creating war and then deploying them on remote machines instead of just referring a ready-made war file from a static location ?

Ashwiniify