Programmatically enable multiple Reporter instances

15 views
Skip to first unread message

Ullrich Hafner

unread,
Mar 19, 2018, 12:55:56 PM3/19/18
to Jenkins Developers
Isn’t it possible to create multiple Reporter or Publisher instances in a job? I’m writing a new publisher for the static analysis plugins but it seems that I can select it just once in a job. (I can wrap the publisher in another object and use a repeatable but that seems somewhat cumbersome and the resulting UI is more complex than it could be)
signature.asc

Jesse Glick

unread,
Mar 19, 2018, 3:14:09 PM3/19/18
to Jenkins Dev
On Mon, Mar 19, 2018 at 12:55 PM, Ullrich Hafner
<ullrich...@gmail.com> wrote:
> Isn’t it possible to create multiple Reporter or Publisher instances in a job?

Not in freestyle projects. It is trivial in Pipeline projects.

Oleg Nenashev

unread,
Mar 20, 2018, 2:48:55 AM3/20/18
to Jenkins Developers
Hi Ulli,

In FreeStyle you can do it using the Flexible Publish Plugin.
Actually it just does the same wrapping as you mentioned, but within FlexiblePublish you can order all publishers as you wish and set up execution conditions. Of course UI is still far from being perfect in this case.

BR, Oleg

Ullrich Hafner

unread,
Mar 20, 2018, 5:59:28 AM3/20/18
to Jenkins Developers
Ah, this is a good tip. Then I can provide a simple publisher in my plugin and if someone needs some advanced compositions (and does not like to use pipelines) he still can install the flexible publish plug-in. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c6adad19-a224-4035-a7aa-53628fc79cd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages