Re: email-ext groovy parsing build log question

2015-04-02 Thread Victoria Wei Lei
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

Re: email-ext groovy parsing build log question

2015-04-02 Thread Steven Deal
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

Re: email-ext groovy parsing build log question

2015-04-02 Thread Victoria Wei Lei
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 -> %> <%

Re: email-ext groovy parsing build log question

2013-12-19 Thread Steven Deal
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 %

Re: email-ext groovy parsing build log question

2013-12-18 Thread Daniel Beck
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

email-ext groovy parsing build log question

2013-12-18 Thread Steven Deal
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