Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a Mercurial VCS build trigger for TeamCity that ignores label operations

I am trying to setup a build trigger for TeamCity using Mercurial as the VCS. Right now the trigger looks like:

+:/**

This trigger get fired when changesets are committed. However, I have TeamCity setup to tag each build in the VCS. The tagging process is firing the above build trigger so the build gets caught in a loop.

Can anyone suggest a VCS build trigger that will filter out the tagging process?

like image 842
Matt Spradley Avatar asked Sep 25 '09 16:09

Matt Spradley


1 Answers

Adding the trigger pattern:

-:/.hgtags

filters out the .hgtags file from the build trigger. This is the file that gets modified when the source is tagged by TeamCity. When this file is excluded tagging operations will not fire the build trigger.

like image 139
Matt Spradley Avatar answered Oct 04 '22 01:10

Matt Spradley