While I have been on the list for while (jenkins-users of whatever it is called), the message never got posted . . . so I assume I am stuck behind some moderator.

I am not against posting code, but there is a LOT of it AND . . . I'm not sure it helps. The Groovy Template is fairly complex, creating a custom GroovyClassLoader() to go find some classes, create objects and then make calls on those object to create the email body.

Having said all of that though, for the purposes of this discussion, it basically comes down to this for a template:

<body>
<%
how to I write to the job's console output here?
%>
</body>

The "out" variable writes directly into the email body.

"listener" was set by EmailExtTemplateAction to TaskListener.NUL at the call to ScriptContent.evaluate() . . . so while there is a listener variable given to the template, it doesn't seem useful.

None of the other variable provided by StriptContent() seem helpful either: build, listener, it, rooturl and project.

So I am looking for a way to put a few lines of output into the job's console output given the environment shown above . . . my code is pretty much irrelevant to the question.

If you have a solution for the template shown above, it will work in my environment as well.

Frank

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to