I am setting up a Jenkins job to build our project, we have replication set up and working, I have pre-task, and build task and a post-build task:
pre-task: mvn clean verify
build task: mvn install -Preplication-source
post build task: mvn install -Pdist
What we're going to do is: use Git for source control, then use Jenkins to build the source and target.
Question:
Do I need to do the mvn clean verify at all?
How can I combine the 2nd and 3rd?
Will I need to run Jenkins twice, one for source and target?
Ultimate goal is to use Jenkins to build the project and deploy to tomcat on both the source AND the target.