Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Infinite builds when using VCS Labeling in TeamCity

We've just set up one of our projects in TeamCity (7.0 (21241)) to label our VCS when the build is successful.

This works fine in that we get Mercurial updated with the appropriate tag. But, as this creates a new Mercurial revision, it's also causing the build to start again as TeamCity is detecting a change.

Any ideas on how to prevent this?

Thanks

like image 562
dubs Avatar asked Dec 31 '25 22:12

dubs


1 Answers

We managed to fix this by setting:

Edit Checkout Rules (within TeamCity Version Control Settings) to:

+:.

-:/.hgtags

(note that the settings are on two seperate lines.)

VCS Labeling mode was set to 'Successful only'

like image 77
dubs Avatar answered Jan 04 '26 16:01

dubs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!