Hi,
I am using below groovy script template for my usage..
<BODY>
<!-- CONSOLE OUTPUT -->
<% if(build.result==hudson.model.Result.SUCCESS) { %>
<TABLE width="100%" cellpadding="0" cellspacing="0">
<TR><TD class="bg1"><B>CONSOLE OUTPUT</B></TD></TR>
<% build.getLog(20).each() { line -> %>
<TR><TD class="console">${org.apache.commons.lang.StringEscapeUtils.escapeHtml(line)}</TD></TR>
<% } %>
</TABLE>
<BR/>
<% } %>
</BODY>
Is there any function to get number of line ?, build.getLog(20)--> here we are passing value as 20, i want to put this value in variable and pass to getLog function.
Is there any function for lines after and lines before?