Class BuildCompletedNotification
java.lang.Object
com.atlassian.bamboo.notification.AbstractNotification
com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification
com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotification
- All Implemented Interfaces:
CommitUrlProvider,ExtendedNotification,Notification,Notification.HtmlImContentProvidingNotification
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:
- buildSummary -
ResultsSummary - buildResult -
BuildResults - build -
Plan - jiraIssues - List of
LinkedJiraIssuecontaining details from JIRA server if available - triggerReasonDescription -
Stringdescription of the trigger reason for this build (html for html emails, plain text for text emails) - shortErrorSummary -
ListofStringcontaining a truncated version of the build's error summary
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.Notification
Notification.HtmlImContentProvidingNotification -
Field Summary
FieldsFields inherited from class com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification
plan, resultsSummaryFields inherited from class com.atlassian.bamboo.notification.AbstractNotification
NAVIGATION_SOURCE -
Constructor Summary
ConstructorsConstructorDescriptionBuildCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext, ResultsSummaryManager resultsSummaryManager) -
Method Summary
Methods inherited from class com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification
getCommitUrl, getEmailSubject, getHtmlEmailContent, getHtmlImContent, getIMContent, getTextEmailContent, setResultsSummary, setTemplateRenderer, setTriggerManager, updateEmailMethods inherited from class com.atlassian.bamboo.notification.AbstractNotification
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipientsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.notification.Notification
addRecipient, applyDefaultCssStyles, excludeRecipient, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
-
Field Details
-
buildResults
-
-
Constructor Details
-
BuildCompletedNotification
@Inject public BuildCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext, ResultsSummaryManager resultsSummaryManager)
-
-
Method Details
-
getDescription
Description copied from interface:NotificationText describing this notification object - used for logging/debugging purposes.- Specified by:
getDescriptionin interfaceNotification- Overrides:
getDescriptionin classAbstractCompletedNotification- Returns:
- Notification's description
-
init
public void init()- Overrides:
initin classAbstractCompletedNotification
-
populateContext
- Overrides:
populateContextin classAbstractCompletedNotification
-
getTextEmailTemplate
- Specified by:
getTextEmailTemplatein classAbstractCompletedNotification
-
getHtmlEmailTemplate
- Specified by:
getHtmlEmailTemplatein classAbstractCompletedNotification
-
getImTemplate
- Specified by:
getImTemplatein classAbstractCompletedNotification
-
getEmailSubjectTemplate
- Specified by:
getEmailSubjectTemplatein classAbstractCompletedNotification
-
getHtmlImTemplate
- Overrides:
getHtmlImTemplatein classAbstractCompletedNotification
-