合并分支后,每次提交时,Teamcity VCS都会触发 [英] Teamcity VCS Triggers On Every Commit When Branches Are Merged

查看:162
本文介绍了合并分支后,每次提交时,Teamcity VCS都会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Teamcity构建配置,该配置需要在我的开发分支上的每个提交或合并(以及每个提交者)下运行。
每当将分支合并到开发中时,每次对合并分支的每次提交都会触发构建构建。
这种行为正在引起麻烦,我需要一种方法来告诉TC每个提交仅触发一个构建。

I have a Teamcity build configuration which needs to run per every commit or merge (and per committer) on my develop branch. Whenever a branch is merged into develop a build build is triggered per every past commit to the merged branch. This behavior is causing Trouble and i need a way to tell TC to trigger only one build per commit.

有什么想法吗?
谢谢!

Any ideas? Thank you!!

推荐答案

不幸的是,不可能完全按照自己的意愿做。
合并之前将Squashing提交提交为一个可能的解决方法。

Unfortunately, it is not possible to do exactly what you want. Squashing commits into single one before merging might be used as a possible workaround.

此外,在< a href = https://youtrack.jetbrains.com/issues/TW rel = nofollow> TeamCity问题跟踪器。

这篇关于合并分支后,每次提交时,Teamcity VCS都会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆