TFS 2017 (v15) 如何配置发布环境和特定构建代理之间的关联 [英] TFS 2017 (v15) How to configure an affinity between a release Environment and a particular Build Agent

查看:28
本文介绍了TFS 2017 (v15) 如何配置发布环境和特定构建代理之间的关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在两台机器上配置了两个自托管构建代理,其中只有一台能够通过 NetBIOS 和 winRM 访问 UAT 目标环境.所以我们需要确保 UAT 版本是从这个构建代理运行的,而不是另一个.

We have two self-hosted build agents configured on two machines, only one of which has the capability of accessing the UAT target environment via NetBIOS and winRM. So we need to make sure that UAT releases get run from this build agent and not the other one.

有没有办法在 TS2017 中创建这种亲和力?在以前的版本中,您可以将标签属性分配给代理,作为定义亲和力的一种方式,但这似乎不再是 2017 年的解决方案.

Is there way to create this affinity in TS2017? In previous versions you could assign tag properties to agents, as a way of defining affinity, but this appears to no longer be a solution for 2017.

推荐答案

答案 - 代理标签已替换为 TFS 中的功能:

The answer - agent tags have been replaced with Capabilities in TFS:

每个代理都有一组功能来表明它可以做什么.功能是名称-值对,它们要么自动被代理软件发现,在这种情况下,它们被称为系统能力,或您定义的能力,在这种情况下,它们被称为用户能力.

Every agent has a set of capabilities that indicate what it can do. Capabilities are name-value pairs that are either automatically discovered by the agent software, in which case they are called system capabilities, or those that you define, in which case they are called user capabilities.

您可以通过导航到代理队列 -> 选择所需代理 -> 功能选项卡来设置代理的功能

You can set the capabilities of an agent by navigating to Agent queues -> Select desired agent -> Capabilities tab

然后,您可以将称为需求的内容与发布定义环境相关联,以告诉它需要哪些代理功能.为此,请编辑发布定义,选择所需的环境 -> 选择在代理上运行"链接 -> 需求.

You can then associate something called a Demand to a release definition environment to tell it what agent capabilities are required. To do this edit the release definition, select the desired environment -> select "Run on agent" link -> Demands.

这篇关于TFS 2017 (v15) 如何配置发布环境和特定构建代理之间的关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆