Class MailNotification
java.lang.Object
com.jenkins.testresultsaggregator.reports.MailNotification
-
Constructor Summary
ConstructorDescriptionMailNotification
(PrintStream logger, List<Data> dataJob, FilePath workspace, File rootDirectory) -
Method Summary
Modifier and TypeMethodDescriptionprotected File
copyStream
(String sourceFile, String destinationFile, File directory) void
send
(String mailTo, String mailToCC, String mailToBCc, String mailFrom, String subject, String body, Map<String, ImagesMap.ImageData> images, String preBodyText, String afterBodyText) void
sendIgnoredData
(String mailTo, String mailFrom, String subject, String body, String preBodyText, String afterBodyText)
-
Constructor Details
-
MailNotification
public MailNotification(PrintStream logger, List<Data> dataJob, FilePath workspace, File rootDirectory)
-
-
Method Details
-
send
public void send(String mailTo, String mailToCC, String mailToBCc, String mailFrom, String subject, String body, Map<String, ImagesMap.ImageData> images, String preBodyText, String afterBodyText) throws Exception- Throws:
Exception
-
sendIgnoredData
public void sendIgnoredData(String mailTo, String mailFrom, String subject, String body, String preBodyText, String afterBodyText) throws Exception - Throws:
Exception
-
copyStream
protected File copyStream(String sourceFile, String destinationFile, File directory) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-