How to use Log Parser Plugin in a Jenkins Workflow script

末鹿安然 提交于 2021-01-23 08:55:42

问题


The Log Parser Plugin is now compatible with Workflow but how do I use it?


回答1:


Easiest is to use Snippet Generator to get an example step statement using it.




回答2:


Snippet Generator is a good idea; however, it is not generating the complete line to make it work. It is necessary to add at the end of the code line ", projectRulePath: ''".

Final line will be in the way, for example:

logParser failBuildOnError: true, parsingRulePAth: '/myRulesPath', showGraphs:true, unstableOnWarning: true, useProjectRule: false, projectRulePath: ''


来源:https://stackoverflow.com/questions/34356794/how-to-use-log-parser-plugin-in-a-jenkins-workflow-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!