How to deploy web application to Tomcat server using Jenkins | Deploy to tomcat | Tomcat Deployment



How to deploy web application to Tomcat server using Jenkins | Deploy to tomcat | Tomcat Deployment

How to deploy web application to Tomcat server using Jenkins | Deploy to tomcat | Tomcat Deployment

This video explains below steps –
1. How to install tomcat in Ubuntu machine on google cloud platform.
2. Create Jenkins job.
3. Configure job to add step for deployment of war to tomcat.

Tomcat installation commands on Ubuntu machine on Gcloud.
1. sudo apt-get update
2. sudo apt-get install default-jdk
3. check java version using command java -version to confirm java installation.
4. sudo apt-get install tomcat8
5. sudo apt-get install tomcat8-docs tomcat8-examples tomcat8-admin
6. sudo systemctl start tomcat8
7. Go to path using command –
sudo vi /var/lib/tomcat8/conf/tomcat-users.xml
8. Add the lines at the bottom –

user username=“admin” password=“admin” roles=“admin, manager,admin-script,manager-script,manager-jmx,manager-status,manager-gui,admingui”

Note- angled brackets not allowed here in description section so please add angled brackets in above line.

9. Restart Tomcat server by executing commands –
sudo systemctl restart tomcat8
10. Hit tomcat Url – http://externalip:8080

Thanks for subscribing!!

Comments are closed.