Package com.mathworks.polyspace.jenkins
Class PolyspacePostBuildActions
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.mathworks.polyspace.jenkins.PolyspacePostBuildActions
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
Publisher
that sends Polyspace Notification in e-mail.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis class does explicit check pointing.void
perform
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) void
void
setFileToAttach
(String fileToAttach) void
setMailBody
(String mailBody) void
setMailBodyBaseName
(String mailBodyBaseName) void
setMailSubject
(String mailSubject) void
setMailSubjectBaseName
(String mailSubjectBaseName) void
setQueryBaseName
(String queryBaseName) void
setRecipients
(String recipients) void
setSendToOwners
(Boolean sendToOwners) void
setSendToRecipients
(Boolean sendToRecipients) void
setUniqueRecipients
(String uniqueRecipients) static jakarta.mail.internet.InternetAddress
stringToAddress
(String strAddress, String charset) Converts a String toInternetAddress
.Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, 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, getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
PolyspacePostBuildActions
@DataBoundConstructor public PolyspacePostBuildActions()Unique recipient that receives all emails
-
-
Method Details
-
setSendToRecipients
-
setRecipients
-
setFileToAttach
-
setMailSubject
-
setMailBody
-
setSendToOwners
-
setQueryBaseName
-
setMailSubjectBaseName
-
setMailBodyBaseName
-
setUniqueRecipients
-
sendMail
public void sendMail(@QueryParameter String sendMailTo, @QueryParameter String subject, @QueryParameter String text, @QueryParameter String attachSource, @QueryParameter String attachName) throws IOException - Throws:
IOException
-
perform
public void perform(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
IOException
InterruptedException
-
getRequiredMonitorService
This class does explicit check pointing.- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
stringToAddress
@Nonnull public static jakarta.mail.internet.InternetAddress stringToAddress(@Nonnull String strAddress, @Nonnull String charset) throws jakarta.mail.internet.AddressException, UnsupportedEncodingException Converts a String toInternetAddress
.- Parameters:
strAddress
- Address Stringcharset
- Charset (encoding) to be used- Returns:
InternetAddress
for the specified String- Throws:
jakarta.mail.internet.AddressException
- Malformed addressUnsupportedEncodingException
- Unsupported encoding
-