Team City 模板和工件
我最近注意到我需要在许多项目中重用构建步骤。因此,我创建了一个模板,其中仅定义了构建步骤,并将需要它的项目与该模板关联起来。效果非常好。
但后来我意识到,尽管所有受影响的项目都已成功构建,但没有一个项目正在生成其工件。当我查看“常规设置”时,“工件路径”框呈灰色,Team City 告诉我只能在模板内更改它!
我希望我的构建具有不同的工件路径(有些甚至根本不生成工件),但我不想重复我的构建步骤。有一些解决方法吗?
团队城市版本:6.5.6(内部版本 18130)
I recently noticed I needed to reuse a build step in many projects. So I created a template where I only defined that build step, and had the projects that needed it associated with that template. That worked perfectly.
But then I realized that none of the affected projects were generating their artifacts, even though all of them were building successfully. When I went to look at the General Settings, the Artifact Paths box was grayed out and Team City told me that I could only change it inside the template!
I want my builds to have different artifact paths (some don't even generate artifacts at all), but I don't want to duplicate my build step. Is there some workaround for this?
Team City Version: 6.5.6 (build 18130)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这就是我解决该问题的方法:
HTH
This is how I workaround the issue:
HTH
这是一个老问题,显然只影响 TeamCity 版本低于 8.1 的用户(如已接受答案的评论中所指出的)。
根据官方文档:
This is an old question and apparently only affects users with TeamCity versions less than 8.1 (as pointed out in the comments to the accepted answer).
According to the offical documentation: