Multiple post build actions in the same plugin?

16 views
Skip to first unread message

Greg Allen

unread,
Mar 24, 2015, 9:39:29 AM3/24/15
to jenkin...@googlegroups.com
I have a plugin that implements a post build action by extending
Notifier. It works fine.

I now want to add another post build action to the same plugin, again
extending Notifier.

I create the new class that extends Notifier and set up everything the
same. In fact, I copied the code from the working post build action and
changed the appropriate names, so I'm pretty sure I've done things
right. However, my second post build action does not appear in the list
on the configuration page (but my first still does). There is nothing
in any log I can find to indicate a problem. It just doesn't show up.

Can somebody offer me some suggestions on tracking down what is wrong? I
feel like I am missing something simple here....

Thanks,

-- Greg

Ulli Hafner

unread,
Mar 24, 2015, 1:24:46 PM3/24/15
to jenkin...@googlegroups.com
Did you provide 2 descriptors?
> --
> 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/55116908.1070603%40redhat.com.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Greg Allen

unread,
Mar 24, 2015, 1:59:48 PM3/24/15
to jenkin...@googlegroups.com
Yes, each class has a nested descriptor class.

I did a clean and then a rebuild and that seems to magically have fixed
things.

-- Greg
Reply all
Reply to author
Forward
0 new messages