User Interface plugin modules
Build Lifecycle plugin modules
Notification plugin modules
System plugin modules

Notification Condition module

Available:

Bamboo 1.1 and later

Deprecated:

Bamboo 2.2 -- use the Notification Type Module instead (see Building a Notification Plugin as well)

Description

Deprecated since Bamboo 2.2 Please use the Notification Type Module instead (see Building a Notification Plugin as well) A plugin module which allows you to define your own notification condition

You can use this plugin to

  • Set conditions as to whether or not to send a notification
  • Generate customised notification content

Interface

Notification Condition modules must implement the com.atlassian.bamboo.notification.NotificationCondition interface.

Sample Module Descriptor Element

1
2
<notification-condition key="buildCompleted.XFailedBuilds" name="After X Failed Builds Completed" class="com.atlassian.bamboo.notification.conditions.AfterXFailedBuildsCondition">
  <description>Send Notification After X Failed Builds</description>
  <resource type="freemarker" name="edit" location="templates/plugins/notifications/afterXFailedEdit.ftl"/>
  <resource type="freemarker" name="view" location="templates/plugins/notifications/afterXFailedView.ftl"/>
</notification-condition>

Other Information regarding the NotificationCondition class

Several of the interface methods for this class accept an Event object as a parameter. Current functionality only allows this to be a BuildCompletedEvent. This event will contain the Build object, BuildResults object and BuildResultsSummary object for you to use.

Rate this page: