Package hudson.maven.reporters
Class MavenMailer
- java.lang.Object
-
- hudson.maven.MavenReporter
-
- hudson.maven.reporters.MavenMailer
-
- All Implemented Interfaces:
ExtensionPoint
,MavenProjectActionBuilder
,Describable<MavenReporter>
,Serializable
public class MavenMailer extends MavenReporter
Sends out an e-mail notification for Maven build result.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MavenMailer.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description boolean
dontNotifyEveryUnstableBuild
negative sense is historicalString
mavenRecipients
not data-bound; set byMavenModule
boolean
perModuleEmail
String
recipients
boolean
sendToIndividuals
-
Constructor Summary
Constructors Constructor Description MavenMailer()
Deprecated.MavenMailer(String recipients, boolean notifyEveryUnstableBuild, boolean sendToIndividuals, boolean perModuleEmail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
end(MavenBuild build, Launcher launcher, BuildListener listener)
Called after the maven execution finished and the result is determined.String
getAllRecipients()
boolean
isNotifyEveryUnstableBuild()
-
Methods inherited from class hudson.maven.MavenReporter
enterModule, getAggregatedProjectAction, getDescriptor, getProjectAction, getProjectActions, leaveModule, postBuild, postExecute, preBuild, preExecute, reportGenerated
-
-
-
-
Field Detail
-
recipients
public String recipients
-
mavenRecipients
public String mavenRecipients
not data-bound; set byMavenModule
-
dontNotifyEveryUnstableBuild
public boolean dontNotifyEveryUnstableBuild
negative sense is historical
-
sendToIndividuals
public boolean sendToIndividuals
-
perModuleEmail
public boolean perModuleEmail
-
-
Constructor Detail
-
MavenMailer
@Deprecated public MavenMailer()
Deprecated.
-
MavenMailer
@DataBoundConstructor public MavenMailer(String recipients, boolean notifyEveryUnstableBuild, boolean sendToIndividuals, boolean perModuleEmail)
-
-
Method Detail
-
isNotifyEveryUnstableBuild
public boolean isNotifyEveryUnstableBuild()
-
end
public boolean end(MavenBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
Description copied from class:MavenReporter
Called after the maven execution finished and the result is determined.This method fires after
MavenReporter.postBuild(MavenBuildProxy, MavenProject, BuildListener)
. Works likeBuildStepCompatibilityLayer.perform(Build, Launcher, BuildListener)
.- Overrides:
end
in classMavenReporter
- Throws:
InterruptedException
IOException
-
getAllRecipients
public String getAllRecipients()
-
-