dubs
dubs

Reputation: 6521

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

Upvotes: 3

Views: 562

Answers (1)

dubs
dubs

Reputation: 6521

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'

Upvotes: 6

Related Questions