问题
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