Run a job on all agents.

Occasionally I need to run a cleanup command on all of my teamcity agents (Drop and recreate a database) I don't like to do this on every test run because it adds a lot of time to the total test run time but when tests fail and leave uncleaned up data in the db it can start gumming things up. I'd like to then queue up a job on all of the servers to clean up each db, is there a way to do this?

Can teamcity help me out?

Michael

3 comments
Comment actions Permalink

You can do Custom Run, then "all enabled compatible agents", but I don't know if that can be automated.

0
Comment actions Permalink

Hi

You can add a feature request in our tracker.
But the main goal of continuous integration is to automate your build and testing process, so I don't think such manual cleanup procedure is a good idea.

Michael

0
Comment actions Permalink

Since TC 6.5 scheduled trigger supports option "run on all compatible agents", seems like this is what you need.

0

Please sign in to leave a comment.