Using Warnings plugin and Log parser plugin a Jenkins Workflow job

502 views
Skip to first unread message

Leon Leon

unread,
Oct 13, 2015, 6:27:15 AM10/13/15
to Jenkins Users
Dear Jenkins Users,

I am trying to use the Warnings plugin in a Workflow job. However, since it is not available in the snippet generator. I am using it this way:
step([$class: 'WarningsPublisher', consoleParsers: [[parserName: 'myParser']]])
How can I add more options to this ? I need to make it always run even if the build failed (So I need this option: Run always: If this plug-in should run even for failed builds then activate this check box)


I am also trying to use the Log Parser Plugin in the workflow. It will be very helpful if you can give me more information about it as well.

Thank you in advance.

Ullrich Hafner

unread,
Oct 13, 2015, 7:28:25 AM10/13/15
to jenkins...@googlegroups.com
Am 13.10.2015 um 12:27 schrieb Leon Leon <chahin...@googlemail.com>:

Dear Jenkins Users,

I am trying to use the Warnings plugin in a Workflow job. However, since it is not available in the snippet generator. I am using it this way:
step([$class: 'WarningsPublisher', consoleParsers: [[parserName: 'myParser']]])
How can I add more options to this ? I need to make it always run even if the build failed (So I need this option: Run always: If this plug-in should run even for failed builds then activate this check box)




I am also trying to use the Log Parser Plugin in the workflow. It will be very helpful if you can give me more information about it as well.

Thank you in advance.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5a582bb7-9219-4d83-a059-bbad3009663c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Leon Leon

unread,
Oct 13, 2015, 7:32:38 AM10/13/15
to Jenkins Users
I already check the source code of the plugins.
But I dont know yet how to use it in the workflow. Can you please help me with that ?

Manuel Jesús Recena Soto

unread,
Oct 13, 2015, 8:39:23 AM10/13/15
to jenkins...@googlegroups.com

Maybe these examples are interesting for you:
https://github.com/jenkinsci/warnings-plugin/pull/63

The snippet generator seems work fine. Remember, you'll find the option under "General Build Step".

By the way, Log Parser Plugin is not still compatible with Workflow.

Regards,

El 13/10/2015 13:33, "Leon Leon" <chahin...@googlemail.com> escribió:
I already check the source code of the plugins.
But I dont know yet how to use it in the workflow. Can you please help me with that ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Manuel Jesús Recena Soto

unread,
Oct 13, 2015, 9:33:32 AM10/13/15
to jenkins...@googlegroups.com
Please, find attached a screenshot.
--
Manuel Recena Soto
* manuelrecena.com [/blog]
* linkedin.com/in/recena
snippet-generator.png

Leon Leon

unread,
Oct 13, 2015, 9:39:29 AM10/13/15
to Jenkins Users
Thank you very much.

Reply all
Reply to author
Forward
0 new messages