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?*
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/c0043e79-74dd-4262-a114-ab0dd1817910%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.