Console listener plugin

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

Console listener plugin

Roman Scheiter

Hi,

 

We are currently using the timeout plugin to automatically abort builds that have gotten stuck someplace in the execution process. The plugin works rather nicely, but we have a variety of different jobs of different/varying runtimes. In certain cases, a lot of time is wasted waiting for the timeout plugin to assert that a build had been running for too long.

 

A thought that came to mind is that we would be able to terminate a build if there has not been any activity in the console output for some time. Instead of aborting the build, a notification feature would be nice – i.e. alert the people in the notification list that the job may potentially be stuck via an sms or email notification..

 

My question is whether this is a feasible approach and whether the appropriate extension points are available in Hudson. Also, would this be a feature that could be quickly added to the timeout plugin?

 

Thanks,

Roman

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Console listener plugin

Kohsuke Kawaguchi
Administrator
I think adding the console output detection to the build-timeout plugin
would be nice indeed. You basically just need to check the size of the
build log file, so it should be doable with the current Hudson.

Looking forward to your patch :-)

Roman Scheiter wrote:

> We are currently using the timeout plugin to automatically abort builds
> that have gotten stuck someplace in the execution process. The plugin
> works rather nicely, but we have a variety of different jobs of
> different/varying runtimes. In certain cases, a lot of time is wasted
> waiting for the timeout plugin to assert that a build had been running
> for too long.
>
>
>
> A thought that came to mind is that we would be able to terminate a
> build if there has not been any activity in the console output for some
> time. Instead of aborting the build, a notification feature would be
> nice - i.e. alert the people in the notification list that the job may
> potentially be stuck via an sms or email notification..
>
>
>
> My question is whether this is a feasible approach and whether the
> appropriate extension points are available in Hudson. Also, would this
> be a feature that could be quickly added to the timeout plugin?
>
>
>
> Thanks,
>
> Roman
>
>
>
>
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment