简体   繁体   English

TFS生成代理:将文件拖放到工作文件夹中

[英]TFS Build Agent: Drop Files in Working Folder

i have my TFS with a Build Agent running on my Server. 我的服务器上运行的是带有构建代理的TFS。 I want to Copy all files from the Project in the working Folder directly. 我想直接从工作文件夹中的项目中复制所有文件。

My Problem is that the Agent creates a Folder 1/s and put all files in there. 我的问题是代理创建一个1 / s文件夹并将所有文件放在其中。 But the files should be directly in the Build Agent working Folder. 但是文件应该直接在Build Agent工作文件夹中。

Have anyone an idea? 有任何想法吗?

This is not possible. 这是不可能的。 In order for the agent to be able to handle multiple workspace configurations and to have subfolders for tests, binaries, artefacts and other elements that are created during the build, it creates a unique working folder structure per workspace/git repository. 为了使代理能够处理多个工作空间配置并具有在构建期间创建的用于测试,二进制文件,伪像和其他元素的子文件夹,它为每个工作空间/ git存储库创建一个唯一的工作文件夹结构。

A lot of tasks in the build workflow make direct use of this structure. 构建工作流程中的许多任务都直接使用此结构。

Apart from specifying the root of the working folder (under which these numbered folders are created), it's not possible to specify a different subfolder structure. 除了指定工作文件夹的根目录(在这些文件夹下创建这些编号的文件夹)之外,无法指定其他子文件夹结构。

You could always use a Copy Files/Move Files task to move the files to a different location as part of the build though. 但是,作为构建的一部分,您始终可以使用“复制文件/移动文件”任务将文件移动到其他位置。

See also: https://github.com/Microsoft/vsts-agent/blob/6c722ba1040089f12322d10239bae0673c8ba54e/docs/jobdirectories.md 另请参阅: https : //github.com/Microsoft/vsts-agent/blob/6c722ba1040089f12322d10239bae0673c8ba54e/docs/jobdirectories.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM