Martin Szabo
Martin Szabo

Reputation: 146

How do I target TFS build agents that does not have a specific tag?

Our MS build setup has several build machines with multiple agents. The agents are tagged with different software installed on the build machines. My build is looking for two tags using "MatchAtLeast". Recently, TFS has occasionally picked another build machine, on which it always fails. I believe it might be because of a certain other software package that is installed on that particular machine, and so I would like to exclude any machine from the ones available for my build that has a specific tag representing the offending software.

I guess I could add tags to everything that does not have that software, but that seems silly, and then if that ever do get installed, the person adding it would need to not just add a tag for the newly installed software, but also remove this other tag stating that it doesn't have that software.

So is there a way to configure your build definition to avoid build agents with a certain tag?

We are using TFS 2012 update 2.

Upvotes: 2

Views: 2799

Answers (1)

James Reed
James Reed

Reputation: 14052

In the advanced tab of the build definition, you can define agent names as well as tags. By default it's set to * but you can use the name of the agent(s) you want to target

Upvotes: 2

Related Questions