带有依赖项的个人构建

发布于 2024-11-14 16:15:25 字数 291 浏览 1 评论 0原文

我已开始通过 TeamCity 6.5 中的新 Git 远程运行功能使用 TeamCity 个人构建。进行单一构建效果很好;我有一个从源代码编译的项目,我给了它一个分支远程运行触发器。

但是,TeamCity 似乎仅触发应用了“分支远程运行”触发器的一个项目。我有几个单元测试项目,使用 Finish Build 触发器在链中设置,但这些项目都没有运行。此外,如果我尝试启动这些单元测试项目之一的自定义构建,我将无法使用我的个人构建中的工件:我只能从“官方”构建之一中选择工件。

我可以让 TeamCity 个人构建与构建链一起使用吗?

I've started using TeamCity personal builds, via the new Git remote run feature in TeamCity 6.5. Doing a single build works fine; I have a project that compiles from source, and I gave it a Branch Remote Run trigger.

However, it looks like TeamCity only triggers the one project that has the Branch Remote Run trigger applied. I have several unit test projects, set up in a chain with Finish Build triggers, and none of these get run. Furthermore, if I try to start a custom build of one of these unit test projects, I can't use the artifacts from my personal build: I can only pick artifacts from one of the 'official' builds.

Can I get TeamCity personal builds to work with build chains?

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

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

发布评论

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

评论(2

允世 2024-11-21 16:15:25

通过您所拥有的设置(快照依赖项和完成构建触发器),您可以通过向您要触发的构建提交您的个人更改来实现构建链接。例如,如果您有项目 A 和 B,其中 B 依赖于 A - 针对项目 B 运行远程构建,A 将首先被触发,B 将被添加到队列中。这两个版本都会有您个人的更改。

如果您使用的是 TeamCity Visual Studio 插件,您可以选择要将更改发送到的构建,只需勾选 B 而不是 A 的框即可。

完成的构建触发器不会被触发,但构建链接意味着必须首先构建 A。

更多信息 - http://confluence.jetbrains.net/display/TCD7/Build+Chain< /a>

(您已标记 TeamCity 6.5,但 7 现已发布,因此我已包含较新版本的文档)

With the setup that you have (snapshot dependencies and finish build triggers), you can achieve build chaining by submitted your personal changes to the builds you are looking to trigger. For example, if you have projects A and B where B depends on A - run the remote build against project B and A will be triggered first and B will be added to the queue. Both of these builds will have your personal changes.

If you are using the TeamCity Visual Studio plugin you can select which builds you want to send your changes to and you just need to tick the box for B instead of A.

The finished build trigger won't be fired, but the build chaining means that A must be built first.

More info - http://confluence.jetbrains.net/display/TCD7/Build+Chain

(You have tagged TeamCity 6.5, but 7 has now been released so I have included the documentation for the newer version)

鹊巢 2024-11-21 16:15:25

我想您不应该使用 Finish Build 触发器来设置您的链,而是使用 TeamCity 的“快照依赖项”功能。并且,根据快照设置工件依赖性。

请在此处阅读有关 TeamCity 中快照依赖项的信息。

I suppose you should setup your chain not with Finish Build trigger, but with "Snapshot dependencies" feature of TeamCity. And, setup artifacts dependency basing on the snapshots.

Please read about snapshot dependencies in TeamCity here.

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