kevinarpe
kevinarpe

Reputation: 21299

How to clear pending VCS changes in TeamCity 7+?

We have a project configured in TeamCity 7.+ to watch a project in Subversion. Each check-in will trigger a build. However, in this case, we want to skip/clear the backlog.

To be very clear: I do not wish to "undo" these Subversion commits. I want to keep the svn commits, but skip the TeamCity builds.

I tried disconnecting the Build Trigger (disable, then delete), but no luck. The TeamCity queue remains.

How to do it? My googling skills are failing me. =(

enter image description here

Upvotes: 21

Views: 7214

Answers (5)

Ricardo
Ricardo

Reputation: 1

The best way I've found is to disable all build steps and run.

Diable build step

Upvotes: 0

Sonic Soul
Sonic Soul

Reputation: 24899

i think you can do this by updating Triggers > VCS trigger settings > "Per-checkin Triggering" section

enter image description here

Upvotes: 0

Graeme Christie
Graeme Christie

Reputation: 386

According to this jetbrains support post, you can just detach the VCS Root and re-attach it.

Upvotes: 3

Rawrgramming
Rawrgramming

Reputation: 1505

If you are just looking to remove the pending changes reminder from your window for these 4 specific changes, and then continue as normal (these 4 changes being incorporated silently into your next build) then the only potential solution I can think of is altering your VCS root to point somewhere else, and then to point back. This may of course not work. adding a new VCS root pointing to the same place may work in place of the above, if that is required.

If there is something different going on, e.g. you don't want these changes to trigger 4 builds, they wont, they will all go on to the next build. If, alternatively, you don't want any builds until some further changes are made, those changes wont trigger further builds once the builds have been removed from the queue (unless this behaviour has recently changed)

Upvotes: 0

Dan Hoerst
Dan Hoerst

Reputation: 6320

You can exclude certain folders/files by editing your Checkout Rules for your VCS Root in Version Control Settings. However, this would exclude those folders/files indefinitely.

It sounds like you only want to exclude these 4 specific changes? That seems counter intuitive as the point of Teamcity and builds in general is to build the solution/project as it is.

If you need these four changes to not be incorporated in the build, you would need to roll them back. If they are used in a different build, you would need to exclude them from this build and create a new build where these changes are needed.

Upvotes: 3

Related Questions