What is the preferred way to setup a continuous integration build chain for a big project with TeamCity?

半世苍凉 提交于 2019-12-05 19:45:59

We did now go for a week with snapshot dependencies and I have grown to like them, besides their inefficiencies.

TeamCity does display dependency problems on builds and there is a documentation page dedicated to Build Chains telling that this is exactly the way how such problems are solved.

So thanks to those who had interest in this question. I will close it now.

A possibility that I wanted to share myself, though I am not sure if one should do this. The goal ist still to shorten feedback cycles:

The deploy to Nexus is a bottleneck because it takes 10 to 20 minutes (depending on network and Nexus) whereas the remainder of the steps is 10 minutes overall as well. I noticed that we are deploying to Nexus more than necessary for continuous integration: not only Maven artifacts but deliverables as well, like rpms or wars. It might be that half of the deploy time is just because of this.

We could setup a third step "Step 3: Build Deliverables". That could be based on an own POM for that problem in order to avoid that everything is compiled and tested. This POM would have a snapshot dependency on the Maven artifacts created in the 2nd step.

But I am not sure if this is best way to do such things in Maven or TeamCity. Still I am hoping for other solutions or thoughts.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!