Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View farazxameer's full-sized avatar

xameer farazxameer

  • Hyderabad, India
View GitHub Profile
@farazxameer
farazxameer / gist:306858781c5d57e3f2f96d482341ac77
Created September 4, 2018 14:05 — forked from k9ert/gist:3e6d64f620b0254d4ad7
example for a Pre-send Script in the JENKINS/Email-ext+plugin
// https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
// An example for a Pre-send Script
// Assume output log-output like:
// ERROR: yourmail@company.com please fix
import javax.mail.internet.*
logger.print("This ends up in the log as well");
String encodingOptions = "text/html; charset=UTF-8;";
// msg.setContent("please check!!!!", encodingOptions);
@farazxameer
farazxameer / gist:cc5ce4e262898f4219d5e013d3b6c2b6
Created September 4, 2018 14:05 — forked from k9ert/gist:3e6d64f620b0254d4ad7
example for a Pre-send Script in the JENKINS/Email-ext+plugin
// https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
// An example for a Pre-send Script
// Assume output log-output like:
// ERROR: yourmail@company.com please fix
import javax.mail.internet.*
logger.print("This ends up in the log as well");
String encodingOptions = "text/html; charset=UTF-8;";
// msg.setContent("please check!!!!", encodingOptions);