TeamCity - 从不同的构建配置引用构建号

发布于 2024-07-26 11:36:14 字数 323 浏览 2 评论 0原文

我正在设置 teamcity 和 msbuild,以比现在更多地自动化我们的构建过程。 我们从事的每个项目都在 teamcity 中设置为单独的项目,并且每个项目都设置了 3 种构建配置:开发、暂存和实时。 开发是我们的标准 CI 构建,在每次签入后运行。 暂存和实时执行构建并部署到适当的环境。

我们的实时构建将使用 teamcity 计数器进行编号。 但我想设置暂存版本,将其版本编号为下一个 Live 版本的测试版。 因此,如果实时构建是版本 6,那么我想将我的暂存构建编号为 v7b1、v7b2 等。有没有办法在 teamcity 中或作为 msbuild 脚本的一部分来执行此操作?

I am in the process of setting up teamcity and msbuild to automate our build process a good deal more than we do now. Each project that we work on is being set up as a seperate project in teamcity, and each of those projects is being set up with 3 build configurations: Development, staging, and live. Development is our standard CI build that runs after each checkin. Staging and live perform build and deployment to the appropriate environment.

Our live builds will be numbered using the teamcity counter. But I would like to set up the staging build to number its builds as betas of the next Live build. So if the live build is at version 6 then I would like to number my staging builds as v7b1, v7b2 etc. Is there any way of doing this either in teamcity or as part of an msbuild script?

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

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

发布评论

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

评论(2

琉璃繁缕 2024-08-02 11:36:14

您不能只将“v7b{0}”放入“版本号格式”框中吗?

Can you not just put "v7b{0}" in the "Build number format" box?

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