TFS 2010 命令行 - TFSConfig 设置/安装 [英] TFS 2010 command line - TFSConfig setup /install

查看:26
本文介绍了TFS 2010 命令行 - TFSConfig 设置/安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:

这是一个鲜为人知的命令,可用于 Team Foundation Server 的命令行实用程序.本质上,它允许您通过传入配置文件在机器上安装团队构建服务(以及控制器和代理).语法是

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}

文件看起来像

<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 Build 服务,并带有两个代理.

In its current form it will configure TFS Build services on the machine on port 9191 with two agents.

问题:

配置设置的方式,它将在机器上配置构建服务,网址如下

The way the config is setup, it will configure the build services on the machine with the url looking like

http://machinename:9191/v.....

我的问题是,出于某种原因,我希望能够控制机器名称"或构建服务的 URL.我怀疑可以通过在配置文件中指定另一个参数来实现,但在我的一生中我无法弄清楚这一点!非常欢迎您提供帮助.

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.

推荐答案

遗憾的是,没有记录使用 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.

这篇关于TFS 2010 命令行 - TFSConfig 设置/安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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