发布工件时启动 TeamCity 构建

发布于 2024-11-01 14:41:02 字数 162 浏览 4 评论 0原文

假设我有一个 TeamCity 构建配置,具体取决于从另一个 TeamCity 获取的工件。 在 TeamCity 中进行构建时可以发布工件。 我的问题是:当所有必要的工件都可用时,是否可以触发构建,即使提供这些工件的构建仍在进行中?

这样做的目的是稍微加快构建速度。

谢谢你!

Let's say I have one TeamCity build configuration depending on artifacts taken from another.
It is possible to publish artifacts while build is in progress in TeamCity.
My question is: is it possible to trigger build when all necessary artifacts are available even if builds that are providing these artifacts are still in progress?

The purpose of this is to speed up builds a little.

Thank you!

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

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

发布评论

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

评论(1

回眸一笑 2024-11-08 14:41:03

据我所知,TeamCity 只能选择在另一个构建配置完成时触发,而不是在发布工件后触发,正如您所说,您可以在构建仍在进行中时触发。

让我问您另一个问题:

由于在发布工件后您在构建中所做的任何事情当然不会阻止您发布工件,所以您不能将该部分提取到另一个构建配置中,然后拥有该部分吗从这个中取出文物?这样,您就可以在获得工件后立即进行想要触发的任何构建配置,只要获得工件,就可以触发。

TeamCity, as far as I know, only has the option to trigger on finish of another build configuration, not after publishing artifacts which as you say you can do while the build is still in progress.

Let me ask you another question:

Since whatever you are doing in the build after the publication of the artifacts didn't of course stop you from publishing the artifacts, can't you extract that part out into another build configuration and then have that part fetch the artifacts from this one? This way you can make whatever build configuration you wanted to trigger as soon as you get the artifacts, trigger, well, as soon as you get the artifacts.

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