且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从$ BUILD_LOG变量获取最后20行?

更新时间:2022-03-19 23:26:14

您可以从Content Token引用中使用以下语法:

You could use the following syntax, from the Content Token reference:

$ {BUILD_LOG,maxLines,escapeHtml} - 显示构建日志的结尾。
maxLines - 最多显示这多行日志。
默认为250.
escapeHtml - 如果为true,则HTML被转义。
默认为false。

${BUILD_LOG, maxLines, escapeHtml} - Displays the end of the build log. maxLines - display at most this many lines of the log. Defaults to 250. escapeHtml - If true, HTML is escaped. Defaults to false.