Teamcity 工件路径如何工作?

发布于 2024-07-06 12:24:26 字数 407 浏览 4 评论 0原文

如果我想创建两个工件 dist 和 source,其中我使用 sln 2008 构建运行程序并使用默认 bin/Release 构建我的项目,任何人都可以给我一个为构建配置定义的工件路径设置的示例吗?

**/Source/Code/MyProject/bin/Release/*.* => dist
**/*.* => source

我得到两个工件根 dist 和 source 但在 dist 下我得到了我不想要的整个目录结构(Source/Code/MyProject/bin/Release),在 source 下我得到了整个目录结构以及 obj 和 bin/Release ,其中我不想。

您能否就如何正确执行此操作提供一些建议?

我是否需要更改我正在构建的所有项目的目标位置才能使其正常工作?

Can anyone give me an example of what the Artifact paths setting defined for a build configuration could look like if I want to create two artifacts dist and source where I am using the sln 2008 build runner and building my projects using the default bin/Release?

**/Source/Code/MyProject/bin/Release/*.* => dist
**/*.* => source

I get two artifact roots dist and source but under dist I get the whole directory structure (Source/Code/MyProject/bin/Release) which I don't want and under source I get the whole thing along with obj and bin/Release which I do not want.

Can you give some advice on how to do this correctly?

Do I need to change the target location for all the projects I am building to be able to get this thing to work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

染年凉城似染瑾 2024-07-13 12:24:26

因此,您只需要:

Source\Code\MyProject\bin\Release\* => dist
Source\**\* => source

这会将发布中的所有文件放入名为 dist 的工件文件夹中,并将 Source 中的所有文件放入名为 source 的工件文件夹中。

如果您在 Release 中有子文件夹,请尝试:

Source\Code\MyProject\bin\Release\**\* => dist

So you'll just need:

Source\Code\MyProject\bin\Release\* => dist
Source\**\* => source

This will put all the files in release into a artifact folder called dist and everything in Source into a artifact folder called source.

If you have subfolders in Release try:

Source\Code\MyProject\bin\Release\**\* => dist
彼岸花ソ最美的依靠 2024-07-13 12:24:26

根据 TeamCity 文档; 应该是这样的:

file_name|directory_name|Ant-like wildcard [ => target_directory ]

所以..

Source\Code\MyProject\bin\Release|**\* => dist  (| not \)

According to TeamCity documentation; it should be like this:

file_name|directory_name|Ant-like wildcard [ => target_directory ]

So..

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