发布工件时启动 TeamCity 构建
假设我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,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.