提交 c8c5c13e 编写于 作者: L lucinka

Replace Hudson with Jenkins, so the headers are X-Jenkins-Job and X-Jenkins-Result

上级 da9daae9
...@@ -305,8 +305,8 @@ public class MailSender { ...@@ -305,8 +305,8 @@ public class MailSender {
MimeMessage msg = new MimeMessage(Mailer.descriptor().createSession()); MimeMessage msg = new MimeMessage(Mailer.descriptor().createSession());
// TODO: I'd like to put the URL to the page in here, // TODO: I'd like to put the URL to the page in here,
// but how do I obtain that? // but how do I obtain that?
msg.addHeader("X-Hudson-Job", build.getProject().getDisplayName()); msg.addHeader("X-Jenkins-Job", build.getProject().getDisplayName());
msg.addHeader("X-Hudson-Result", build.getResult().toString()); msg.addHeader("X-Jenkins-Result", build.getResult().toString());
msg.setContent("", "text/plain"); msg.setContent("", "text/plain");
msg.setFrom(new InternetAddress(Mailer.descriptor().getAdminAddress())); msg.setFrom(new InternetAddress(Mailer.descriptor().getAdminAddress()));
msg.setSentDate(new Date()); msg.setSentDate(new Date());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册