Hi, Steven,
currently it does not generate any output. i am running very simple test
program, and SVN is definitely showing in console output, so I replace
"error' in your template with SVN. My goal is to scan our build console
output, and only display the lines containing "error[s]' or "wa
Hi Victoria,
I see nothing wrong with what you have. I think the string you are looking
for would have to be '[SVN]', i.e. it's not a regular expression. You may
wish to change this to simply 'SVN' to see something captured. Are you
getting an error or simply not output?
On Thursday, April 2, 2
hello, Steven,
Hope my message reach you out.
I used your sample code and replaced the string I want to extract from
console log, it would not do anything.
I chnage it as text format:
<% def rdr= new InputStreamReader(build.getLogInputStream()) %>
<%rdr.eachLine{ it -> %>
<%
Thanks, this is good to know and first experiments have my message not
getting clipped in gmail, so your suggestion worked.
On Wed, Dec 18, 2013 at 3:22 PM, Daniel Beck wrote:
> You can wrap multiple lines in <% %>. The way you wrap each line
> individually works, but every line break between %
You can wrap multiple lines in <% %>. The way you wrap each line individually
works, but every line break between %> and %< gets printed.
Instead, do it like this:
> <% def rdr= new InputStreamReader(build.getLogInputStream())
> rdr.eachLine{ it ->
> if(it.contains("[error
Backstory: our build produces a 35000+ line log file (forget turning down
the logging level). A compile error or such might be scattered anywhere
over this output and typically will not be in the last few lines. Build
emails became nearly useless as they rarely showed a developer what
actually