Triggering multiple tasks with definite sequence in TeamCity

Hi,

We have been using TeamCity heavily for continous integration and deployment. The number of tasks in TeamCity increases to almost 100.
While it is very convenient to have these deployment with a few clicks, I am thinking to group them into a "1 click" solution.

The following is a simplified sample of our structure:

Project A
          Compile Project A (VCS link to SVN A)
          DuplicateFinder for Project A
          UnitTest for Project A
          WetTest for Project A

Project B
          Compile Project B (VCS link to SVN B)
          DuplicateFinder for Project B
          UnitTest for Project B
          WetTest for Project B
Project C
          Compile Project C (VCS link to SVN C)
          DuplicateFinder for Project C
          UnitTest for Project C
          WetTest for Project C

Deployment
          Deploy Project A (Artifact dependency on Compile Project A)
          Deploy Project B (Artifact dependency on Compile Project B)
          Deploy Project C (Artifact dependency on Compile Project C)

----------------------------------------------------------------------------

What I am tring to do:

Deployment
          *** DEPLOY ALL *** (A task that can trigger the following 3 tasks in sequence, i.e. A, B, C)
          Deploy Project A (Artifact dependency on Compile Project A)
          Deploy Project B (Artifact dependency on Compile Project B)
          Deploy Project C (Artifact dependency on Compile Project C)


----------------------------------------------------------------------------


I was thinking to do it via dependency on tasks, however, dependency is only 1 to 1 in the setting, and I dont want to lose the ability to run them seperately. Moreover, due to the number of tasks already in TeamCity, I dont really want to copy the existing tasks to another group to link them together (e.g. Deployment2: Deploy2 Project C trigger by Deploy2 Project B trigger by Deploy2 Project A). Is there any better solution than this?

Thanks in advance.

Regards,
Thomas

4 comments
Comment actions Permalink

You can trigger these tasks by HTTP from another build, read more here: http://www.jetbrains.net/confluence/display/TCD5/Accessing+Server+by+HTTP

0
Comment actions Permalink

Can you advise how I can setup a TeamCity task that call X numbers of http link?

0
Comment actions Permalink

It depends on a technology you usually use. If you are using Ant, there is a standard <get/> task which can be used for this. I beleive in NAnt there is something similar.

0
Comment actions Permalink

Thank heaps. I will try to set it up this way.

0

Please sign in to leave a comment.