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 ...