TeamCity 中的通知模板错误 (BUILD_NUMBER)?

发布于 2024-08-05 19:17:57 字数 291 浏览 3 评论 0原文

我已经设置了 TeamCity,以便在新的内部版本准备就绪时通知整个团队。该电子邮件包含指向已放置分发的服务器文件夹的链接。链接模式非常简单,唯一“动态”的是最低级别的文件夹 - 它的名称与版本号匹配。

该文件夹由 MsBuild 使用 TeamCity 的“build.number”属性生成。一切都很好,它的名称仅包含模式中指定的内容(例如 1.0.0.0)。但奇怪的是,通知模板中的 {BUILD_NUMBER} 返回******1.0.0.0(带有#号)。

因此,电子邮件最终会出现错误链接。 有人注意到这一点吗?有解决办法吗?

I've set up TeamCity to notify the whole team when a new internal release is ready. The email contains links to server folders where the distributive has been placed. The link pattern is quite simple, the only thing that's 'dynamic' is the lowest-level folder - it's name matches the version number.

The folder is generated by MsBuild using TeamCity's "build.number" property. All is good with it, its name contains only what has been specified in the pattern (e.g. 1.0.0.0). But the strange thing is that {BUILD_NUMBER} in notifications template returns **#**1.0.0.0 (with the # sign).

So the email ends up with bad links.
Has anyone noticed this? Is there a fix?

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

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

发布评论

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

评论(2

┾廆蒐ゝ 2024-08-12 19:17:57

其他人在 JetBrains TeamCity 上问了基本相同的问题博客,以及开发者社区论坛

社区似乎已经看到了这个问题,但似乎没有简单的修复或解决方法:)

Someone else asked essentially the same question on the JetBrains TeamCity blog, as well as on the Developer Community forums.

It appears the community has already seen this issue, but there doesn't seem to be a easy fix or workaround:)

枫以 2024-08-12 19:17:57

报告的错误似乎已在 5.1 版本中得到修复。

The reported bug seems to have got a fix in version 5.1.

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