分支、主干持续集成?

发布于 2024-08-20 20:53:15 字数 191 浏览 2 评论 0原文

我正在努力与分支和主干结构建立良好的持续集成。

但我们应该如何思考呢?

我们希望我们的持续集成工具能够为我们提供一个每周测试一次的版本,该版本将保留一周,有时我们会进行错误修复直到发布。

我应该创建一个名为 Testbranch 的分支并让 testbranch 始终构建并放到测试服务器上吗?或者我应该从其他方向思考?

Im working to set up an good continuous integration with a branching and trunk structure.

But how should we think?

We want that our continuous integration tool to give us a version to test once a week which will stay at that version for a week, well sometimes we will do bugfixes until release.

Should I create a branch called like Testbranch and let the testbranch always been build and put up to the testserver? Or shall I think in any other direction?

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

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

发布评论

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

评论(1

你在我安 2024-08-27 20:53:15

我认为您应该在“测试/即将发布”分支和另一个监视主线的 CI 构建上构建 CI。

对测试分支的任何错误修复都将被构建并移至测试服务器。对主线的更改将仅通过您现有的任何类型的单元测试来构建。每周,您将同步主线和测试分支,这将触发测试分支上的构建以开始新功能的测试。

我还建议购买第二个测试服务器,以便您也可以定期部署主线并验证它是否正常运行。从长远来看,这可能会让您延长测试周期,以便立即测试更多“开发中”项目。这最终可能会让您的团队离开分支模型,只进行一周的冲刺,在一周内构建、测试和交付新功能。

I think you would have CI builds on both the "test / soon to be released" branch and another CI build that watches the mainline.

Any bug fixes to the test branch would be built and moved to the test server. Changes to the mainline would just be built with any sort of unit testing you have in place. Weekly, you would sync the mainline and test branches which would trigger a build on the test branch to start your testing of the new features.

I'd also recommend getting a second test server so you can deploy the mainline regularly as well and validate that it's on track. Over the long term, this may allow you to push up your test cycle so more "in development" items get tested immediately. This may eventually allow your team to leave the branching model and just have one week sprints where new functionality is built, tested and delivered in a single week.

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