TFS 2010 命令行 - TFSConfig 设置/安装

发布于 2024-12-08 11:19:38 字数 1698 浏览 0 评论 0原文

背景:

这是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

流云如水 2024-12-15 11:19:38

不幸的是,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.

不忘初心 2024-12-15 11:19:38

还有一些其他(不受支持的)方法可以通过命令行安装代理
您可以在这里找到它们:其他方法

there are some other (unsupported) methods to install agents per command-line
you can find them here: other methods

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文