What I want to achieve is two step build automation
Step A - Build & Upload to artifact repo
- Create build job in Jenkins which will create build after every check-in
- Upload every successful build on Archiva server
Step B - Get latest artifact & deploy on required servers
- After every desired interval, get latest build from Archiva
- Deploy build uploaded in Step A.2 to dev/qa/stg server by unzipping its content in web server directory.
I was able to do achieve Step A by using maven goals in my project pom.xml but any idea/suggestions/best practices for Step B.
I understand/agree, I would need two different jobs having different pom.xml, question remains how will we get latest war from repo in pom and how will be deploy that latest war on remote server by unzipping it, as tomcat there does not have admin module.