gpt4 book ai didi

github - 为TeamCity构建配置选择Git分支

转载 作者:行者123 更新时间:2023-12-04 04:38:00 28 4
gpt4 key购买 nike

我想在我的CI框中通过teamcity完成关注。

Master branch commit : Build and Release
Beta branch commit: Build and Release to Crashlytics
All other commits to any other branch: Build

(请注意,由于我们大多数开发分支可能包含或可能不包含前缀,因此很难使用“feature- *”分支命名)

跟随这个问题 Select Git branch for TeamCity Build

我在项目设置中创建了一个配置参数

enter image description here

然后

我的VCS根目录设置

enter image description here

然后我创建了一个构建模板

enter image description here

创建版本时,请确保分支名称正确

enter image description here

我也尝试编辑触发器

enter image description here

但是为什么这不起作用,因为当我将提交推送到Beta分支时

我认为由于 ref/heads/*,默认版本正在运行所有分支

Beta和Master显示“待处理”

enter image description here

我该如何纠正?

最佳答案

我通过与其他开发人员交谈并确保所有开发分支都使用前缀(在本例中为XAAI-)解决了该问题。

然后在我的VCS根目录设置中

enter image description here

对于每个构建配置中的触发器,我确保仅在 checkin 该分支时才触发它。

例如质量检查(Betabuild)

enter image description here

,这是棘手的部分,对于开发分支,我不得不提供一个空参数,但我不知道为什么(也许是因为某些东西需要检查默认分支,应该是ref/heads/),但是不管它是在工作什么原因。*

enter image description here

然后整个事情看起来像这样

enter image description here

那件悬而未决的事情仍然很烦人,但是,我认为至少它按照我现在的设想正在工作。

关于github - 为TeamCity构建配置选择Git分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34537525/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com