Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Email-ext 插件时,我还想在那里写下构建日志的最后 20 行(不作为文件附加)我知道我可以使用 $BUILD_LOG 变量访问日志,但不知道具体如何采取该变量的 las 20 行。有什么帮助吗?非常感谢。
您可以使用来自 Content Token 参考的以下语法:
${BUILD_LOG, maxLines, escapeHtml} - 显示构建日志的结尾。maxLines - 最多显示这么多行的日志。默认为 250。 escapeHtml - 如果为 true,则 HTML 被转义。默认为假。