I need to set up nice deployment process on TeamCity.
For now I have configured special deployment builds per target server and per project build which dependency artifact is normal build. When I want to deploy I click Run on it and it works. My project looks like this now:
Deploy Nightly on Tomcat (server1)
Deploy PostSubmit on Tomcat (server1)
Deploy Nightly on Tomcat (server2)
Deploy PostSubmit on Tomcat (server2)
As You see this looks ugly and I need to set up deployment separately on Nightly and PostSubmit. Actually they are deploying to the same location.
I would like to have a simple button on every successful build "Deploy" and after then choose where to deploy. As I understand I need to develop plugin which calls another prepared deployment build, gives it artifacts from source build, overrides properties such as target server name, starts build. I don`t know where to start... Help!