@NotThreadSafe public class BuildCompletedNotification extends AbstractCompletedNotification
This class is used to generate content for All Completed Builds Notifications, the Failed And First Successful Notifications and First Failed Job 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:
ResultsSummary
BuildResults
Plan
LinkedJiraIssue containing details from JIRA server if available
String description of the trigger reason for this build (html for html emails, plain text for text emails)
List of String containing a truncated version of the build's error summary
Notification.HtmlImContentProvidingNotification| Modifier and Type | Field and Description |
|---|---|
protected BuildResults |
buildResults |
plan, resultsSummaryNAVIGATION_SOURCE| Constructor and Description |
|---|
BuildCompletedNotification(BranchStatusService branchStatusService,
CachedPlanManager cachedPlanManager,
VcsRepositoryViewerManager vcsRepositoryViewerManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CustomVariableContext customVariableContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Text describing this notification object - used for logging/debugging purposes.
|
protected String |
getEmailSubjectTemplate() |
protected String |
getHtmlEmailTemplate() |
protected String |
getHtmlImTemplate() |
protected String |
getImTemplate() |
protected String |
getTextEmailTemplate() |
void |
init() |
protected void |
populateContext(Map<String,Object> context) |
getCommitUrl, getEmailSubject, getHtmlEmailContent, getHtmlImContent, getIMContent, getTextEmailContent, setResultsSummaryManager, setTemplateRenderer, setTriggerManager, updateEmailaddRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipientsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRecipient, applyDefaultCssStyles, excludeRecipient, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipientsprotected BuildResults buildResults
@Inject public BuildCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext)
@NotNull public String getDescription()
NotificationgetDescription in interface NotificationgetDescription in class AbstractCompletedNotificationpublic void init()
init in class AbstractCompletedNotificationprotected void populateContext(Map<String,Object> context)
populateContext in class AbstractCompletedNotificationprotected String getTextEmailTemplate()
getTextEmailTemplate in class AbstractCompletedNotificationprotected String getHtmlEmailTemplate()
getHtmlEmailTemplate in class AbstractCompletedNotificationprotected String getImTemplate()
getImTemplate in class AbstractCompletedNotificationprotected String getEmailSubjectTemplate()
getEmailSubjectTemplate in class AbstractCompletedNotificationprotected String getHtmlImTemplate()
getHtmlImTemplate in class AbstractCompletedNotificationCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.