Only Tomcat WAR deployment using Jenkins:
Here is the scinario for deployment:
- 3 Environment Production, pre-Production and Qualification
- 2 War files like app1 and app2
- 2 Tomcat servers Like Server1 and Server2 for each Environment (Point 1)
War files scinario:
- Developer gives war files like app1##20171122.war and app2##20171122.war
- app1 and app2 settings files are not part of war.
- Settings files are different for each Environment (Production, pre-Production and Qualification)
- After deployment of app1 and app2 we put the settings files at webapps/app1##20171122/config/Application.settings and webapps/app2##20171122/config/Application.settings
Finally app1 and app2 starts using tomcat manager
Here is what I want to do with Jenkins:
Using Mavin deployment or any other tool:
Note: Here War files size is more than 450MB
Jenkin Project App1:
- We will put the app1##20171122.war files on Jenkins server
- We should be able to auto select the war file for deployment along with war version
- We should be able to deploy war files on multiple servers (Server1 and Server2)
- Deploy the setting files for app1 under webapps/app1##20171122/config/Application.settings
- Start the app1
Note: Application is not yet ready to read configuration from outside of webapps
In short:
(Jenkins Server: App1 war files & their setting files) ==(deploy on remote VM)==>(Tomcat server)
(Jenkins Server: Auto select App1 war) ==(deploy on remote VM)==>(Tomcat server)
(Jenkins Server: App1 Setting file ) ==(deploy setting on remote VM)==>(Tomcat server)
(Jenkins Server: Start App1 command ) ==(Send Command to remote VM)==>(Tomcat server)