我希望通过我的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](https://istack.dev59.com/FWJRa.webp)
![enter image description here](https://istack.dev59.com/IRBLd.webp)
![enter image description here](https://istack.dev59.com/C3hnK.webp)
![enter image description here](https://istack.dev59.com/FdzMg.webp)
![enter image description here](https://istack.dev59.com/hA2vO.webp)
我认为是因为默认的构建是运行所有分支,包括Beta和Master
![enter image description here](https://istack.dev59.com/hEPVM.webp)