J
First, I will describe the principled scheme, and specific tools will be described after.The scheme is:After the comet, we need to collect an app.created file tomcatComit collectionThere are two options.Either https://git-scm.com/book/ru/v2/%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0-Git-%D0%A5%D1%83%D0%BA%D0%B8-%D0%B2-Git so that the guit himself can be notified of the comedian.Either a process should periodically review changes and start a collection.Deployment (deploy) on volumeThe tomkat has several possibilities to deploy applications:It's easy. https://tomcat.apache.org/tomcat-8.0-doc/deployer-howto.html#Deploying_on_a_running_Tomcat_server Web-based applicationsThere's a special app to Tomcat Manager with https://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html#Deploy_a_Directory_or_WAR_by_URL for deploymentGot it. https://tomcat.apache.org/tomcat-8.0-doc/deployer-howto.html#Deploying_using_the_Client_Deployer_Package which is integrated with ant and enables, among other things, the annex to be reproduced.ToolsIt's probably the simplest way to write the scruple that's gonna be two steps:collect the annex to the war filemvn package if used maven c https://maven.apache.org/plugins/maven-war-plugin/usage.html flame)copy the war file in the folder of web applications tomcatThen we need to:add post-commit A squeak to start with a comet. http://www.andyfrench.info/2015/03/automatically-triggering-jenkins-build.html This topic is addressed to windows in a broader context.to build https://tomcat.apache.org/tomcat-8.0-doc/deployer-howto.html#Deploying_on_a_running_Tomcat_server that after step 2 of the crypt, the annex is covered by a tomato.It must be understood that continuous deployment is a rather complicated procedure, as it usually includes, among other things:Starting tests during assembly (and reports if something's wrong)integration testing (+reports)The application itself may require migrating data to OBD. https://ru.wikipedia.org/wiki/Smoke_test after deploymentIt's possible to take off the previous version if something went wrong.In the case of localized use, not all of this is necessary, but something may be needed (such as OBD migration, if the system is required to be deployed not from scratch each time, but from data retention). Depends on your demands, of course.A more sophisticated version, but more opportunities, is the use of a type system http://jenkins.io/ ♪ In this case there are ready https://plugins.jenkins.io/git/ which can help meet some of the tasks described.The price for this convenience is the complexity of configuration and the need for administration. In this case, it may be convenient to launch jenkins in docker to make the jenkins itself operational.