如何使用自定义内容更新构建警报电子邮件内容? [英] How do I update the build alert email content with custom content?

查看:81
本文介绍了如何使用自定义内容更新构建警报电子邮件内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作中,我们通过Visual Studio使用GIT存储库,并为每个功能分支生成构建。目前,我已将TFS配置为向我的团队发送构建完成/失败警报,并且警报发送得很好。但是,我希望在电子邮件内容中包含功能分支信息的警报,以便在特定功能分支的构建完成或失败时很容易知道。是否可以包含"源版本";将b $ b包含在电子邮件内容/主题行中的信息?如果是,那将为我解决问题,但我仍然需要有人来帮助我实现这一目标。如果没有,我该如何解决我的问题?

At my work we are using GIT repositories through Visual Studio and we generate builds for each feature branch. Currently I have configured TFS to send out build complete/failure alerts to my team and the alerts get sent out just fine. However, I would like  the alerts to contain the feature branch information in the email content so that it's easy to know when build for a specific feature branch is completed or failed. Is it possible to include the "Source Version" information to include into the email content/subject line? If Yes, that would solve the problem for me but I still need someone to help me out how I can achieve that. If not, How can I solve my problem?

推荐答案

您好,

感谢您在此发帖。

>但是,我希望警报包含电子邮件内容中的功能分支信息

>However, I would like  the alerts to contain the feature branch information in the email content

>是否可能包括"源版本"要包含在电子邮件内容/主题行中的信息?

>Is it possible to include the "Source Version" information to include into the email content/subject line?

您可以自定义电子邮件通知或警报的格式
团队成员订阅
。要自定义格式,您可以修改其关联的
XSL转换文件。您可以检查是否有任何模板可以提供功能分支或源版本信息供您自定义。

You can customize the format of email notifications, or alerts, that team members subscribe to. To customize the format, you can modify their associated XSL transform files.You may check if there is any template can provide the feature branch or source version information for you to customize.

警报格式转换文件存储在应用层服务器上的以下文件夹中:

Alert format transform files are stored in the following folder on the application-tier server:

C:\Program Files \ Microsoft Office Team Server 14.0 \\ Application Tier\TFSJobAgent\Transforms\1033

C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\TFSJobAgent\Transforms\1033

如果没有要使用的模板,您可以考虑编写活动服务来创建自己的电子邮件。

If there is no template to use, you may consider to write your event service to create your own email.

May


这篇关于如何使用自定义内容更新构建警报电子邮件内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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