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.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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.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.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods 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:
performin interfaceSimpleBuildStep- Throws:
IOExceptionInterruptedException
-
getRequiredMonitorService
This class does explicit check pointing.- Specified by:
getRequiredMonitorServicein 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:
InternetAddressfor the specified String- Throws:
jakarta.mail.internet.AddressException- Malformed addressUnsupportedEncodingException- Unsupported encoding
-