在TFS Build 2012中,定义定义的`build agent folder` $(SourceDir)是什么?

编程入门 行业动态 更新时间:2024-10-25 16:22:29
本文介绍了在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)是什么?

本文发布于:2023-11-16 12:14:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1604183.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:定义   Build   TFS   SourceDir   folder

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!