TeamCity 不触发自动构建

发布于 2025-01-05 11:59:36 字数 133 浏览 0 评论 0原文

我对持续集成很愚蠢,并注意到一种似乎不正确的行为。

我正在将 Mercurial 与 TeamCity 一起使用。当我推送更改时,TeamCity 会检测到更改,但不会自动运行构建。这是正确的行为吗?他不应该检测到更改并自动运行构建吗?

I'm dumb with continuous integration and noticed a behavior that does not seem right..

I'm using Mercurial with TeamCity. When I push changes the TeamCity detect the changes but don't run the build automatically. This is correct behavior? He should not detect the changes and run the build automatically?

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

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

发布评论

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

评论(2

缱倦旧时光 2025-01-12 11:59:36

默认情况下,TeamCity 中不会将触发器添加到构建配置中。您需要转到配置设置,然后单击“构建触发器”,然后单击“添加触发器”。我相信您正在寻找的触发器类型是“VCS 触发器”。

此功能的文档可以在此处找到。

Triggers are not added to build configurations by default in TeamCity. You'll need to go to the settings for the configuration and click on "Build Triggers" then "Add Trigger". The type of trigger I believe you are looking for is a "VCS Trigger".

The documentation for this feature can be found here.

開玄 2025-01-12 11:59:36

我相信我的问题是误解了分支过滤器的需求。我以为我应该输入 GIT 参考 我想要从这触发构建

这对我来说不起作用

+:refs/heads/*
-:refs/heads/releases/6.7.3
-:refs/heads/releases/6.8.30
-:refs/heads/releases/6.8.32
-:refs/heads/releases/6.8.34

这就是最终发现的(我认为)是它要求 TeamCity 本身内部的分支名称(帮助文本显示“以 +|- 形式的换行符分隔的规则集:逻辑分支名称”)

这对我有用,可以从分支触发构建(GIT ref refs/heads/master 对我来说,回顾一下你的 VCS根设置)以及除标记为“releases/6.7.3”、“releases/6.8.30”、“releases/6.8.32”和“releases/6.8.34”的分支之外的所有其他分支

+:*
-:releases/6.7.3
-:releases/6.8.30
-:releases/6.8.32
-:releases/6.8.34

I believe my issues was misunderstanding what was needed in Branch Filters. I thought I was supposed to enter the GIT refs I wanted to have builds triggered from

This wasn't working for me

+:refs/heads/*
-:refs/heads/releases/6.7.3
-:refs/heads/releases/6.8.30
-:refs/heads/releases/6.8.32
-:refs/heads/releases/6.8.34

And this is what finally figured out (I think) is that it is asking for the branch names inside TeamCity itself (the help text says "Newline-delimited set of rules in the form of +|-:logical branch name")

This worked for me, to trigger builds from the branch (GIT ref refs/heads/master for me, look back in your VCS Root setup) and all other branches except those labeled "releases/6.7.3", "releases/6.8.30", "releases/6.8.32" and "releases/6.8.34"

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