The way I solved that in the Gerrit Trigger plugin was to let the trigger schedule the build with a custom Cause and then a RunListener that in onCompleted checks if the build has that cause and if so do the needful.
/B On Fri, Sep 12, 2014 at 11:43 AM, Dominik Ruf <[email protected]> wrote: > Hi, > > I'm planing a plugin that has different aspects (Trigger, Builder > and Notifier). > Is there a way to combine the Trigger with the Notifier (and Builder)? > The idea is that if the user activates the Trigger, the Notifier is > automatically executed as well. > The user doesn't need to activated the Notifier separately. > Maybe it is even possible to hide the Notifier from the user. > > cheers > Dominik > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
