通过Hudson发送Subversion更改日志信息 [英] Sending Subversion Change Log Info Via Hudson

查看:55
本文介绍了通过Hudson发送Subversion更改日志信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Hudson集成到我们的开发过程中,除了一件事之外,一切都进行得很顺利.

I'm trying to integrate Hudson into our development process, and everything is going smooth except for one thing.

我一直在使用Phing进行部署,被触发的一件事情是发送到我们的技术支持电子邮件地址的电子邮件,其中包含上次部署代码与当前SVN修订版之间的所有提交消息的列表. .我正在做这样的事情:

I had been using Phing to do deployments, and one of the things that was being triggered was an email to our tech support email address containing a list of all the commit messages between the last time code was deployed and the present SVN revision. I was doing something like this:

  • 从当前部署的应用程序的根目录中读取一个文件,其中包含部署该应用程序时的SVN版本
  • 将该值放在Phing变量中
  • 将该值插入命令中,以通过电子邮件发送SVN提交消息
  • 在新部署的应用程序的根目录中创建一个包含当前SVN修订版的文件

我希望能够在构建成功后将这些信息添加到Hudson发送的电子邮件中.在Hudson中如何完成此任务的任何指示都将不胜感激.

I'd like to be able to add that information to the email that gets sent out by Hudson when a successful build goes out. Any pointers on how to accomplish this task in Hudson would be greatly appreciated.

推荐答案

当我从CruiseControl切换到Hudson时,这也使我很烦.您可以使用 Hudson email-ext插件-安装插件后,您将在每个作业配置页面的末尾看到可编辑的电子邮件配置"选项.单击帮助链接以查看您可以在电子邮件中包含哪些信息; $ {CHANGES}令牌是您需要触发触发构建的SVN提交的令牌.

This annoyed me, too, when I switched from CruiseControl to Hudson. You can do what you need by using the Hudson email-ext plugin - after you install the plugin, you'll see an option "Editable email configuration" at the end of each job configuration page. Click on the help links to see what information you can include in your emails; the ${CHANGES} token is the one you need to shoe the SVN commits that triggered the build.

这篇关于通过Hudson发送Subversion更改日志信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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