【问题标题】:Can a Bamboo project be configured to use the Maven developers section to send build notifications?可以将 Bamboo 项目配置为使用 Maven 开发人员部分来发送构建通知吗?
【发布时间】:2014-06-17 07:43:45
【问题描述】:

我在Bamboo(5.3 版)中配置了一个 Maven 项目。我希望能够在我的 pom.xml 中使用developers section,以便向该部分中定义的开发人员发送构建通知。这在我之前使用过的其他持续集成工具中是可能的。 Bamboo 中是否可以使用钩子使其工作?

【问题讨论】:

    标签: java maven pom.xml bamboo


    【解决方案1】:

    如果您想使用 maven 项目配置来发送电子邮件,请使用 maven 本身来完成这项工作。它适用于您选择的任何环境和 CI 工具。

    1. 在您的 pom.xml 中提供 'build-success' + 'build-failed' 配置文件以及配置的 maven-changes-plugin

    2. 将相应的调用添加到构建后处理中:

      mvn changes:announcement-mail -P build-success # for successful build
      mvn changes:announcement-mail -P build-failure`# for failed build
      

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-11
      • 1970-01-01
      • 2012-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多