Whenever I notice that something in my workflow is a recurring task , I try to automate it.
For example, the steps required to deploy something to a server. This is often an assembly, followed by scp, and finally several remote installation scripts:
- mvn package
- scp target / foobar.jar server:
- ssh server install-foobar
- ssh server ../ bin / foobar restart '
I try to write a small Makefile in such cases, which may 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 a tool of choice? What are the advantages / disadvantages?
source share