Whenever I notice that something in my workflow is a repeating task, I try to automate it.
For example the steps necessary to deploy something on a server. It's often a build, followed by a scp and finally some remote setup scripts:
- mvn package
- scp target/foobar.jar server:
- ssh server install-foobar
- ssh server './bin/foobar restart'
I tend to write a small Makefile in such cases, which could look like
deploy:
mvn package
scp target/foobar.jar server:
ssh server install-foobar
ssh server './bin/foobar restart'
How do you automate your workflows?
Is Ant the tool of choice? What are the Pros/Cons?