Let's understand how we can deploy a web application in Tomcat using the Jenkins plugin.
We can follow a few steps for that:
- Run Apache Tomcat
- Use the proper IP address and port number combination to navigate to the Tomcat home page:

- Go to the conf directory and then open tomcat-users.xml in your Tomcat installation directory and un-comment the role and user lines or rewrite them. Set manager-script as the rolename for testing purposes. We need manager-script for deployment via the Deploy to Container plugin.
- For the Jenkins deploy plugin, change the rolename to manager-script as follows:

- Click on the manager application link on the Tomcat home page and enter the username and password you set in tomcat-users.xml. Now we can access the management application. For a local Tomcat, we can use localhost to access the Tomcat page or we can use the...