TFS 2010 命令行 - TFSConfig 设置/安装
背景:
这是 Team Foundation Server 命令行实用程序中一个鲜为人知的命令。本质上,它允许您通过传入配置文件在计算机上安装团队构建服务(以及控制器和代理)。语法是
tfsconfig setup /install /unattendfile:{filepath}
该文件看起来像
<Configuration>
<TeamBuild>
<CollectionUri>
<Uri>Url of your TFS project collection</Uri>
</CollectionUri>
<Credentials>
<FullName></FullName>
<Password></Password>
</Credentials>
<Controller>
<ControllerName>Default Controller</ControllerName>
<CustomAssemblyPath />
<MaxConcurrentBuilds>0</MaxConcurrentBuilds>
</Controller>
<Agent>
<AgentName>Agent 1 Name</AgentName>
<ControllerName>Default Controller</ControllerName>
<BuildDirectory>$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)</BuildDirectory>
</Agent>
<!--AgentName>Agent 2 Name</AgentName>
<ControllerName>Controller Name</ControllerName>
<BuildDirectory>$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)</BuildDirectory>
</Agent>-->
<Port>9191</Port>
<UseSSL>False</UseSSL>
</TeamBuild>
</Configuration>
在其当前形式中,它将使用两个代理在端口 9191 上的计算机上配置 TFS 构建服务。
问题:
配置的设置方式,它将在计算机上配置构建服务,其 URL 类似于
http://machinename:9191/v.....
我的问题是,出于某种原因,我希望能够控制“machinename”或本质上是构建服务的 URL。我怀疑可以通过在配置文件中指定另一个参数来实现,但我一生都无法弄清楚这一点!非常欢迎一些帮助。
Background:
This is a little known command available with the Team Foundation Server's command line utility. Essentially it lets you install team build services (along with controllers and agents) on a machine by passing in a configuration file. The syntax is
tfsconfig setup /install /unattendfile:{filepath}
The file looks like
<Configuration>
<TeamBuild>
<CollectionUri>
<Uri>Url of your TFS project collection</Uri>
</CollectionUri>
<Credentials>
<FullName></FullName>
<Password></Password>
</Credentials>
<Controller>
<ControllerName>Default Controller</ControllerName>
<CustomAssemblyPath />
<MaxConcurrentBuilds>0</MaxConcurrentBuilds>
</Controller>
<Agent>
<AgentName>Agent 1 Name</AgentName>
<ControllerName>Default Controller</ControllerName>
<BuildDirectory>$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)</BuildDirectory>
</Agent>
<!--AgentName>Agent 2 Name</AgentName>
<ControllerName>Controller Name</ControllerName>
<BuildDirectory>$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)</BuildDirectory>
</Agent>-->
<Port>9191</Port>
<UseSSL>False</UseSSL>
</TeamBuild>
</Configuration>
In its current form it will configure TFS Build services on the machine on port 9191 with two agents.
Problem:
The way the config is setup, it will configure the build services on the machine with the url looking like
http://machinename:9191/v.....
my problem is that for some reason I want to be able to control the "machinename" or essentially the URL of the build service. I have a suspicion that it is possible by specifying another param in the config file but for the life of me I can't figure this out! Some help will be very welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,tfsconfig 的无人值守安装没有记录在案,因为它在 2010 年尚未完成。我们计划在下一个版本中完成。
Unfortunately, unattended installation with tfsconfig isn't documented because it was not finished in 2010. We have plans to finish in the next release.
还有一些其他(不受支持的)方法可以通过命令行安装代理
您可以在这里找到它们:其他方法
there are some other (unsupported) methods to install agents per command-line
you can find them here: other methods