com.atlassian.bamboo.notification.chain
Class ChainCompletedNotification
java.lang.Object
com.atlassian.bamboo.notification.AbstractNotification
com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification
com.atlassian.bamboo.notification.chain.ChainCompletedNotification
- All Implemented Interfaces:
- Notification
@NotThreadSafe
public class ChainCompletedNotification
- extends AbstractCompletedNotification
This class is used to generate content for All Completed Chains Notifications and the Failed And First Successful Notifications.
If you wish to customise the default notifications, please see the online Bamboo documentation:
http://confluence.atlassian.com/display/BAMBOO/Modifying+Notification+Templates
The notification templates are written in Freemarker markup. The object context below provides information about
Bamboo builds that you can insert in the Freemarker markup of your notification templates.
Object Context:
- buildSummary -
ResultsSummary
- build -
Chain
- jiraIssues - List of
LinkedJiraIssue
containing details from Jira server if available
- triggerReasonDescription -
String
description of the trigger reason for this build (html for html emails, plain text for text emails)
Methods inherited from class com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification |
getEmailSubject, getHtmlEmailContent, getIMContent, getTextEmailContent, init, populateContext, setJiraIssueManager, setJiraIssueUtils, setPlanManager, setResultsSummaryManager, setTemplateRenderer, setTriggerReasonManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainCompletedNotification
public ChainCompletedNotification()
getDescription
@NotNull
public java.lang.String getDescription()
- Description copied from interface:
Notification
- Text describing this notification object - used for logging/debugging purposes.
- Specified by:
getDescription
in interface Notification
- Overrides:
getDescription
in class AbstractCompletedNotification
- Returns:
- Notification's description
getTextEmailTemplate
protected java.lang.String getTextEmailTemplate()
- Specified by:
getTextEmailTemplate
in class AbstractCompletedNotification
getHtmlEmailTemplate
protected java.lang.String getHtmlEmailTemplate()
- Specified by:
getHtmlEmailTemplate
in class AbstractCompletedNotification
getImTemplate
protected java.lang.String getImTemplate()
- Specified by:
getImTemplate
in class AbstractCompletedNotification
getEmailSubjectTemplate
protected java.lang.String getEmailSubjectTemplate()
- Specified by:
getEmailSubjectTemplate
in class AbstractCompletedNotification
Copyright © 2011 Atlassian. All Rights Reserved.