How can I take the last 20 lines from the $ BUILD_LOG variable?

When using the "Email-ext" module, I would also like to write the last 20 lines of the build log (not attached as a file) I know that I can access the log using the $ BUILD_LOG variable, but I don’t know exactly how to take las 20 lines from this variable. Any help? Thank you very much.

+4
source share
2 answers

You can use the following syntax from the Content Token link:

$ {BUILD_LOG, maxLines, escapeHtml} . Displays the end of the assembly log. maxLines - Displays no more than many log lines. The default is 250. escapeHtml - if true, HTML is escaped. The default is false.

+10
source

Is there a way that I can display single lines or information in an assembly log like Attahemnt. I don’t want to display the complete build log,

-1
source

All Articles