+ " sh '''echo '<testsuite name=\"s\"><testcase name=\"c\"><error>failed</error></testcase></testsuite>' > r.xml'''\n"
+ " step([$class: 'JUnitResultArchiver', testResults: 'r.xml'])\n"
+ " step([$class: 'Mailer', recipients: '" + recipient + "'])\n"
+ "}"));
Mailbox inbox = Mailbox.get(new InternetAddress(recipient));
inbox.clear();
WorkflowRun b = r.assertBuildStatus(Result.UNSTABLE, p.scheduleBuild2(0).get());
assertEquals(JenkinsRule.getLog(b), 1, inbox.size());
assertEquals(/* MailSender.createUnstableMail/getSubject */Messages.MailSender_UnstableMail_Subject() + " " + b.getFullDisplayName(), inbox.get(0).getSubject());
p.setDefinition(new CpsFlowDefinition(
"node {\n"