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 SummaryNested ClassesNested classes/interfaces inherited from class hudson.tasks.PublisherPublisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStepBuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStepSimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
- 
Field SummaryFields inherited from interface hudson.tasks.BuildStepBUILDERS, PUBLISHERS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis class does explicit check pointing.voidperform(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) voidvoidsetFileToAttach(String fileToAttach) voidsetMailBody(String mailBody) voidsetMailBodyBaseName(String mailBodyBaseName) voidsetMailSubject(String mailSubject) voidsetMailSubjectBaseName(String mailSubjectBaseName) voidsetQueryBaseName(String queryBaseName) voidsetRecipients(String recipients) voidsetSendToOwners(Boolean sendToOwners) voidsetSendToRecipients(Boolean sendToRecipients) voidsetUniqueRecipients(String uniqueRecipients) static jakarta.mail.internet.InternetAddressstringToAddress(String strAddress, String charset) Converts a String toInternetAddress.Methods inherited from class hudson.tasks.NotifiergetDescriptorMethods inherited from class hudson.tasks.Publisherall, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayergetProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStepgetProjectAction, getProjectActions, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStepperform, 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
- 
sendMailpublic void sendMail(@QueryParameter String sendMailTo, @QueryParameter String subject, @QueryParameter String text, @QueryParameter String attachSource, @QueryParameter String attachName) throws IOException - Throws:
- IOException
 
- 
performpublic void perform(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Specified by:
- performin interface- SimpleBuildStep
- Throws:
- IOException
- InterruptedException
 
- 
getRequiredMonitorServiceThis class does explicit check pointing.- Specified by:
- getRequiredMonitorServicein interface- BuildStep
 
- 
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 String
- charset- Charset (encoding) to be used
- Returns:
- InternetAddressfor the specified String
- Throws:
- jakarta.mail.internet.AddressException- Malformed address
- UnsupportedEncodingException- Unsupported encoding
 
 
-