在TFS Build 2012中,定义定义的`build agent folder` $(SourceDir)是什么? [英] What is `build agent folder` $(SourceDir) of a build definition in TFS Build 2012?

查看:112
本文介绍了在TFS Build 2012中,定义定义的`build agent folder` $(SourceDir)是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为TFS构建创建构建定义时,有一个名为 Source Settings 的部分,如下所示:我们必须定义1)源代码管理文件夹和2)构建代理文件夹。

When creating a build definition for a TFS build, there is a section called Source Settings as below snapshoot where we have to define 1) Source Control Folder and 2) Build Agent Folder.

据我了解,源代码管理文件夹是获取源代码的位置。但是我不知道 build agent文件夹用于什么版本。

As I understand, the source control folder is where to get the source to build. But I don't get the idea what is the build agent folder is used for in a build.

请如果知道的话,请与我分享。谢谢!

Please share me what that is about if you know it. Thank you!

推荐答案

$(SourceDir)是Build计算机上的目录,它将

$(SourceDir) is the Directory on the Build machine, which will be used for Check-out your source code from TFS and then to Compile it and Build.

$(SourceDir)的值是将其配置为的值;用于从TFS检出源代码,然后对其进行编译和构建。通常,您在构建机器上的工作目录,默认情况下,其值来自构建代理属性上的工作目录设置(如图所示,红色标记)选项;即 $(SystemDrive)\Builds\ $(BuildAgentId)\ $(BuildDefinitionPath)

Value for the $(SourceDir) is what you will configure it to; normally your working directory on the build machine and by default its value come from Working directory settings on the build agent properties (red marked) option as shown in the picture; i.e. $(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)

其中


  • $(SystemDrive)是系统驱动器,例如C:

  • $(BuldAgentID)是通常分配给代理1,2,3等的数字。

  • ($ BuildDefinitionPath)是TFS中源代码的根文件夹。

  • $(SystemDrive) is system drive, e.g. C:
  • $(BuldAgentID) is a numeric number assigned to agents normally 1,2,3 etc.
  • ($BuildDefinitionPath) is the root folder of your source code from TFS.

$(SourceDir)可以是 C:\Bulids\1\TeamProjectName\Path\To\Your\App

So a typical example of $(SourceDir) can be "C:\Bulids\1\TeamProjectName\Path\To\Your\App"

这篇关于在TFS Build 2012中,定义定义的`build agent folder` $(SourceDir)是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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