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:
ExtendedNotification,Notification,Notification.HtmlImContentProvidingNotification
@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 - triggerReasonDescription -
Stringdescription of the trigger reason for this build (html for html emails, plain text for text emails)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.Notification
Notification.HtmlImContentProvidingNotification
-
-
Field Summary
Fields Modifier and Type Field Description protected intexecutedJobsprotected StageExecutionstageExecution-
Fields inherited from class com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification
plan, resultsSummary
-
Fields inherited from class com.atlassian.bamboo.notification.AbstractNotification
NAVIGATION_SOURCE
-
-
Constructor Summary
Constructors Constructor Description ChainCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, TestsManager testsManager, TestQuarantineManager testQuarantineManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext, ResultsSummaryManager resultsSummaryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetEmailSubjectTemplate()protected StringgetHtmlEmailTemplate()protected StringgetHtmlImTemplate()protected StringgetImTemplate()protected StringgetTextEmailTemplate()voidinit()protected voidpopulateContext(Map<String,Object> context)-
Methods inherited from class com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification
getCommitUrl, getDescription, getEmailSubject, getHtmlEmailContent, getHtmlImContent, getIMContent, getTextEmailContent, setResultsSummary, setTemplateRenderer, setTriggerManager, updateEmail
-
Methods inherited from class com.atlassian.bamboo.notification.AbstractNotification
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.notification.Notification
addRecipient, applyDefaultCssStyles, excludeRecipient, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
-
-
-
-
Field Detail
-
stageExecution
protected StageExecution stageExecution
-
executedJobs
protected int executedJobs
-
-
Constructor Detail
-
ChainCompletedNotification
@Inject public ChainCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, TestsManager testsManager, TestQuarantineManager testQuarantineManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext, ResultsSummaryManager resultsSummaryManager)
-
-
Method Detail
-
init
public void init()
- Overrides:
initin classAbstractCompletedNotification
-
populateContext
protected void populateContext(Map<String,Object> context)
- Overrides:
populateContextin classAbstractCompletedNotification
-
getTextEmailTemplate
protected String getTextEmailTemplate()
- Specified by:
getTextEmailTemplatein classAbstractCompletedNotification
-
getHtmlEmailTemplate
protected String getHtmlEmailTemplate()
- Specified by:
getHtmlEmailTemplatein classAbstractCompletedNotification
-
getImTemplate
protected String getImTemplate()
- Specified by:
getImTemplatein classAbstractCompletedNotification
-
getHtmlImTemplate
protected String getHtmlImTemplate()
- Overrides:
getHtmlImTemplatein classAbstractCompletedNotification
-
getEmailSubjectTemplate
protected String getEmailSubjectTemplate()
- Specified by:
getEmailSubjectTemplatein classAbstractCompletedNotification
-
-