Teamcity Gerrit VCS triggering old builds

Hi,

See some topics related to this but all several years old and no real solutions offered. Our builds mostly work as intended with individual commits by users triggering builds on their respective branches. Our problem is that when someone edits either the VCS root or the trigger branch spec (usually involving the gerrit /refs/changes/ branches) TC likes to retrigger all gerrit builds seemingly since the beginning of time. Not only will it rebuild all old builds but triggers multiple versions of each build.

Typically when this happens deleting the builds (sometimes thousands) is all it takes to have things return to normal as new check-ins will work as intended. I assume this is just how it process the previous changes and they're seen as net-new if the VCS modification changes the record in some way. Can someone explain this or what the correct setup is to prevent it when making changes?

Example from today someone modifies branch spec:

before:

  1. <param name="branchFilter"><![CDATA[+:/refs/changes/*
  2. -:<default>]]></param>

after

  1. <param name="branchFilter"><![CDATA[+:*
  2. -:<default>]]></param>

TC VCS logs showing triggered builds (also might want to fix reason: per-checking typo, should probably be per-check-in)

 

 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=259938
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=262391
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=262394
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=264119
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=264254
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=264355
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=264853
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=264854
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=264858
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=265011
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=265152
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=265631
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=266064
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=266638
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267110
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267125
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267136
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267320
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267332
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267394
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267395
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267441
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267522
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=267523
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=268750
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=269007
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=269964
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270632
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270662
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270663
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270664
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270671
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270950
 myDesiredBranchName=00/31500/1} reason: per-checking triggering on the change VcsModification{id=270991
0

Please sign in to leave a comment.