hudson.plugins.emailext
Class ExtendedEmailPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.plugins.emailext.ExtendedEmailPublisher
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class ExtendedEmailPublisher
- extends hudson.tasks.Publisher
Publisher that sends notification e-mail.
- Author:
- kyle.sweeney@valtech.com
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Method Summary |
<P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>>
boolean |
|
_perform(B build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
|
static void |
addEmailContentType(EmailContent contentType)
|
static void |
addEmailTriggerType(EmailTriggerDescriptor triggerType)
|
boolean |
getConfigured()
|
java.util.List<EmailTrigger> |
getConfiguredTriggers()
Get the list of configured email triggers for this project. |
hudson.model.Descriptor<hudson.tasks.Publisher> |
getDescriptor()
|
static EmailContent |
getEmailContentType(java.lang.String token)
|
static java.util.Collection<EmailContent> |
getEmailContentTypes()
|
static java.util.Collection<java.lang.String> |
getEmailTriggerNames()
|
static java.util.Collection<EmailTriggerDescriptor> |
getEmailTriggers()
|
static EmailTriggerDescriptor |
getEmailTriggerType(java.lang.String mailerId)
|
java.util.List<EmailTrigger> |
getNonConfiguredTriggers()
Get the list of non-configured email triggers for this project. |
static java.util.List<EmailTrigger> |
getTriggersForNonConfiguredInstance()
|
boolean |
isConfigured()
Return true if the project has been configured, otherwise returns false |
boolean |
needsToRunAfterFinalized()
|
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
|
static void |
removeEmailContentType(EmailContent contentType)
|
static void |
removeEmailTriggerType(EmailTriggerDescriptor triggerType)
|
<P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>>
java.lang.String |
|
replaceTokensWithContent(java.lang.String origText,
EmailType type,
hudson.model.AbstractBuild<P,B> build)
|
<P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>>
boolean |
|
sendMail(EmailType mailType,
B build,
hudson.model.BuildListener listener)
|
| Methods inherited from class hudson.tasks.Publisher |
getProjectAction, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
getProjectAction, prebuild |
EMAIL_ADDRESS_REGEXP
public static final java.lang.String EMAIL_ADDRESS_REGEXP
- See Also:
#extractAddressFromId(String),
Constant Field Values
COMMA_SEPARATED_SPLIT_REGEXP
public static final java.lang.String COMMA_SEPARATED_SPLIT_REGEXP
- See Also:
- Constant Field Values
OLD_DEFAULT_SUBJECT_TEXT
public static final java.lang.String OLD_DEFAULT_SUBJECT_TEXT
- See Also:
- Constant Field Values
OLD_DEFAULT_BODY_TEXT
public static final java.lang.String OLD_DEFAULT_BODY_TEXT
- See Also:
- Constant Field Values
DEFAULT_SUBJECT_TEXT
public static final java.lang.String DEFAULT_SUBJECT_TEXT
- See Also:
- Constant Field Values
DEFAULT_BODY_TEXT
public static final java.lang.String DEFAULT_BODY_TEXT
- See Also:
- Constant Field Values
PROJECT_DEFAULT_SUBJECT_TEXT
public static final java.lang.String PROJECT_DEFAULT_SUBJECT_TEXT
- See Also:
- Constant Field Values
PROJECT_DEFAULT_BODY_TEXT
public static final java.lang.String PROJECT_DEFAULT_BODY_TEXT
- See Also:
- Constant Field Values
recipientList
public java.lang.String recipientList
- A comma-separated list of email recipient that will be used for every trigger.
defaultSubject
public java.lang.String defaultSubject
defaultContent
public java.lang.String defaultContent
DESCRIPTOR
public static final ExtendedEmailPublisher.DescriptorImpl DESCRIPTOR
ExtendedEmailPublisher
public ExtendedEmailPublisher()
addEmailContentType
public static void addEmailContentType(EmailContent contentType)
throws EmailExtException
- Throws:
EmailExtException
removeEmailContentType
public static void removeEmailContentType(EmailContent contentType)
getEmailContentType
public static EmailContent getEmailContentType(java.lang.String token)
addEmailTriggerType
public static void addEmailTriggerType(EmailTriggerDescriptor triggerType)
throws EmailExtException
- Throws:
EmailExtException
removeEmailTriggerType
public static void removeEmailTriggerType(EmailTriggerDescriptor triggerType)
getEmailTriggerType
public static EmailTriggerDescriptor getEmailTriggerType(java.lang.String mailerId)
getEmailTriggers
public static java.util.Collection<EmailTriggerDescriptor> getEmailTriggers()
getEmailTriggerNames
public static java.util.Collection<java.lang.String> getEmailTriggerNames()
getTriggersForNonConfiguredInstance
public static java.util.List<EmailTrigger> getTriggersForNonConfiguredInstance()
getEmailContentTypes
public static java.util.Collection<EmailContent> getEmailContentTypes()
getConfiguredTriggers
public java.util.List<EmailTrigger> getConfiguredTriggers()
- Get the list of configured email triggers for this project.
getNonConfiguredTriggers
public java.util.List<EmailTrigger> getNonConfiguredTriggers()
- Get the list of non-configured email triggers for this project.
isConfigured
public boolean isConfigured()
- Return true if the project has been configured, otherwise returns false
getConfigured
public boolean getConfigured()
perform
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
java.lang.InterruptedException
java.io.IOException
_perform
public <P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>> boolean _perform(B build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
sendMail
public <P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>> boolean sendMail(EmailType mailType,
B build,
hudson.model.BuildListener listener)
replaceTokensWithContent
public <P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>> java.lang.String replaceTokensWithContent(java.lang.String origText,
EmailType type,
hudson.model.AbstractBuild<P,B> build)
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()
- Overrides:
needsToRunAfterFinalized in class hudson.tasks.Publisher
getDescriptor
public hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
Copyright © 2008. All Rights Reserved.