Have a specific branch be built only on a specific agent

Hi,

 

We have a specific branch e.g. upgrade_branch which we need when built should only be built on one specific agent e.g. agent 6.

So all the other branches for one specific build configuration can still run on all the agents, only one specific branch should be running in a specific build agent

 

Is this something that we can achieve for our build configurations?


Branch filters don't seem to be helping with this, neither feature branches

0
3 comments
Avatar
Fedor Rumyantsev
Hello!

Unfortunately, the only good approach I can think of is to create a copy of a build configuration using the same root, then restrict it to only allow a specific branch to be built and add an agent requirement for a specific agent. The main configuration should have the branch in question excluded from branch filter.

Can you please elaborate on your use case where this is needed?
1

Hey @...

 

Thanks for the quick reply. Yeah having a copy of the build configuration was an option we were considering if we can't use the same build config.

 

What we're trying to do is, we're trying to upgrade some of the tools and frameworks we use and we have those said tools and frameworks installed on all of our build agents. We have upgraded the tools to the necessary version on one of our agents and we want changes on our code to be built and deployed through that agent so we can test it first before pushing changes live and upgrading tools and frameworks in all of our other agents too. This is self hosted TC server and agents btw

0
Avatar
Fedor Rumyantsev

Understood, thank you! Seeing as this looks like a one-off test, I believe setting up a copy configuration is indeed a way to go. 

0

Please sign in to leave a comment.