What is the core difference in extending Recorder vs Notifier?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

What is the core difference in extending Recorder vs Notifier?

darbour
Hello,

While building a plugin I'm trying to decide whether it would be most
appropriate to extend from Recorder or Notifier. Could someone lay out
the core differences between the two?

Thank you for your help!

Thanks,

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: What is the core difference in extending Recorder vs Notifier?

Kohsuke Kawaguchi-3
On 07/21/2010 08:00 AM, david arbour wrote:
> Hello,
>
> While building a plugin I'm trying to decide whether it would be most
> appropriate to extend from Recorder or Notifier. Could someone lay out
> the core differences between the two?

Yes. See http://javadoc.hudson-labs.org/hudson/tasks/Notifier.html and
http://javadoc.hudson-labs.org/hudson/tasks/Recorder.html

Recorder can mark the build failed, but notifiers can't. The idea is
that if you are collecting some reports and would like to mark the build
as unstable or failed depending on the report, then you need to be a
Recorder.

Otherwise if you want to report the outcome of the build to others, you
need to be a Notifier.

>
> Thank you for your help!
>
> Thanks,
>
> -David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi | InfraDNA, Inc. | http://infradna.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: What is the core difference in extending Recorder vs Notifier?

darbour
Exactly what I was looking for. Thanks!

-David



On Wed, Jul 21, 2010 at 11:36 AM, Kohsuke Kawaguchi
<[hidden email]> wrote:

> On 07/21/2010 08:00 AM, david arbour wrote:
>>
>> Hello,
>>
>> While building a plugin I'm trying to decide whether it would be most
>> appropriate to extend from Recorder or Notifier. Could someone lay out
>> the core differences between the two?
>
> Yes. See http://javadoc.hudson-labs.org/hudson/tasks/Notifier.html and
> http://javadoc.hudson-labs.org/hudson/tasks/Recorder.html
>
> Recorder can mark the build failed, but notifiers can't. The idea is that if
> you are collecting some reports and would like to mark the build as unstable
> or failed depending on the report, then you need to be a Recorder.
>
> Otherwise if you want to report the outcome of the build to others, you need
> to be a Notifier.
>
>>
>> Thank you for your help!
>>
>> Thanks,
>>
>> -David
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
> --
> Kohsuke Kawaguchi | InfraDNA, Inc. | http://infradna.com/
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]