@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:
ResultsSummary
Chain
String
description of the trigger reason for this build (html for html emails, plain text for text emails)
Notification.HtmlImContentProvidingNotification
Modifier and Type | Field and Description |
---|---|
protected int |
executedJobs |
protected StageExecution |
stageExecution |
plan, resultsSummary
NAVIGATION_SOURCE
Constructor and Description |
---|
ChainCompletedNotification(BranchStatusService branchStatusService,
CachedPlanManager cachedPlanManager,
TestsManager testsManager,
TestQuarantineManager testQuarantineManager,
VcsRepositoryViewerManager vcsRepositoryViewerManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CustomVariableContext customVariableContext) |
Modifier and Type | Method and Description |
---|---|
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, getDescription, getEmailSubject, getHtmlEmailContent, getHtmlImContent, getIMContent, getTextEmailContent, setResultsSummaryManager, setTemplateRenderer, setTriggerManager, updateEmail
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRecipient, applyDefaultCssStyles, excludeRecipient, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
protected StageExecution stageExecution
protected int executedJobs
@Inject public ChainCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, TestsManager testsManager, TestQuarantineManager testQuarantineManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext)
public void init()
init
in class AbstractCompletedNotification
protected void populateContext(Map<String,Object> context)
populateContext
in class AbstractCompletedNotification
protected String getTextEmailTemplate()
getTextEmailTemplate
in class AbstractCompletedNotification
protected String getHtmlEmailTemplate()
getHtmlEmailTemplate
in class AbstractCompletedNotification
protected String getImTemplate()
getImTemplate
in class AbstractCompletedNotification
protected String getHtmlImTemplate()
getHtmlImTemplate
in class AbstractCompletedNotification
protected String getEmailSubjectTemplate()
getEmailSubjectTemplate
in class AbstractCompletedNotification
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.