Jenkins之Log Parse使用方法详解
2018-08-29 08:34
671 查看
在初学使用Jenkins的同学们,应该都遇到过通过bash或者cmd命令执行输出的日志,没办法做到对error, warning等状态的分析和统计。在这里就给他介绍一款实现此功能的插件Log Parse。此插件安装相当容易,但配置规则文件时,我踩了一坑,记录共享于同学们。
规则文件绝对路径
当然,你的设置一定要重新加载,否则是无效的
规则文件相对路径:
在windows平台下,默认的根目录为C:\Windows\.SysWOW64\,所以需要把规则文件放到此目录下。
常用规则文件代码如下:
ok /not really/ # match line starting with 'error ', case-insensitive error /error / # list of warnings here... warning /[Ww]arning/ warning /WARNING/ # create a quick access link to lines in the report containing 'INFO' info /INFO/ # each line containing 'BUILD' represents the start of a section for grouping errors and warnings found after the line. # also creates a quick access link. start /BUILD/
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
相关文章推荐
- 基于DateTime.ParseExact方法的使用详解
- 数据爬虫(二):python爬虫中urllib库详解,parse和request使用方法
- Jenkins之Log Parse的使用
- JavaScript中this关键字使用方法详解
- showModalDialog()、showModelessDialog()方法使用详解
- 详解MySQL数据备份之mysqldump使用方法
- showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- 如何使用Java操作文本文件的方法详解 (转)
- showModalDialog()、showModelessDialog()方法使用详解[转载]
- showModalDialog()、showModelessDialog()方法使用详解
- [导入]showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- 大灰狼的Javascript工具箱(四)——showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- showModalDialog()、showModelessDialog()方法使用详解
- 在线HTML编辑器的调用方法和使用方法详解