TeamCity - Build triggering on specific file, Mercurial

Posted by Garrett on Stack Overflow See other posts from Stack Overflow or by Garrett
Published on 2010-04-25T11:11:23Z Indexed on 2010/04/25 11:13 UTC
Read the original article Hit count: 711

Filed under:
|
|
|
|

Hi

I'm trying to get my build to trigger only when i create a Tag in Mercurial. The way im trying to do this is by creating an additional Build Config (Tag Conf) for my project where I set the VCS build trigger to:

+:/.hgtags --Trigger only when tags are updated -:. --Do not trigger on any other files

Whenever i push a changeset (without a Tag) in the overview my build conf (Tag Conf) says "X Pending", i suspect this is the changesets. And when I create a Tag in Mercurial, a build i is triggered and the X Pending goes away. Then all there is left for me todo is to update build/rev numbers in AssemblyInfo (somehow) and deploy the Artifacts(somehow).

Question: Is this the correct way to do this or are there another/better way to do this? (Im using sln2010 runner + NUnit + Mercurial)

Kind Regards

© Stack Overflow or respective owner

Related posts about teamcity

Related posts about mercurial