在 TeamCity 中构建同一解决方案的不同项目
我有一个 git 存储库,其中包含一些 .NET 解决方案和一些共享项目。我希望 TeamCity 在解决方案发生变化时触发每个解决方案的构建;我遇到的问题是,每当我的根目录中发生任何更改时,Teamcity 都会告诉我其他解决方案中存在待处理的更改,这些更改不受所做更改的影响。
有办法实现我的目标吗?
I have a git repository containing a few .NET solutions with some shared projects. I'd like TeamCity to trigger a build per solution whenever the solution changes; the problem I'm having is that whenever anything changes in my root directory, Teamcity tells me there are pending changes in the other solutions that weren't affected by the changes made.
Is there a way to do what I'm aiming at?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我推荐针对“共享”项目的单独解决方案。或者,您可以有多种解决方案配置,其中不应该构建“共享”项目。
I recomend separate solution for "shared" projects. Or you can have several configurations of solution where "shared" project is not supposed to build.
听起来就像您只使用一个存储库引用。如果您有不同的解决方案,您应该为每个解决方案创建一个存储库引用 (TC-config),或者编辑每个构建项目的签出规则,以仅包含解决方案所依赖的存储库部分。
Reads like you are using just one repository reference. If you have different solutions you should either create one repository reference (TC-config) for each or edit the checkout rules for each build project to include only the parts of the repo the solution depends on.