Quantcast

mark build as unstable if it takes too long

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

mark build as unstable if it takes too long

Darren Rowley
Is there any way to mark a build as unstable if it takes too long? I'm aware of the build timeout plugin but that appears to actually abort the build. I don't want the build to be aborted I just want the job to become unstable.

I guess I could do this we a groovy post build action but just wondering if I am missing a built in setting or plugin.

thanks in advance,
D.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

domi
maybe this helps: https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin
Domi

On 11.09.2012, at 03:48, Darren Rowley <[hidden email]> wrote:

> Is there any way to mark a build as unstable if it takes too long? I'm aware of the build timeout plugin but that appears to actually abort the build. I don't want the build to be aborted I just want the job to become unstable.
>
> I guess I could do this we a groovy post build action but just wondering if I am missing a built in setting or plugin.
>
> thanks in advance,
> D.
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

Richard Bywater-2
I think the OP is aware of that plugin and the main issue seems to be
that the build timeout plugin aborts the build rather than makes it
unstable.

OP: Perhaps you could update the build timeout plugin to have the
option of setting the build to unstable/failed rather than abort?

Richard.

On Wed, Sep 12, 2012 at 5:36 AM, domi <[hidden email]> wrote:

> maybe this helps: https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin
> Domi
>
> On 11.09.2012, at 03:48, Darren Rowley <[hidden email]> wrote:
>
>> Is there any way to mark a build as unstable if it takes too long? I'm aware of the build timeout plugin but that appears to actually abort the build. I don't want the build to be aborted I just want the job to become unstable.
>>
>> I guess I could do this we a groovy post build action but just wondering if I am missing a built in setting or plugin.
>>
>> thanks in advance,
>> D.
>>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

Darren Rowley
In reply to this post by domi
As I said in my original post I don't think it does as it aborts the build? Are you using it to just what I want? I could see an option..

On Wednesday, September 12, 2012 5:36:32 AM UTC+12, domi wrote:
maybe this helps: https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin
Domi

On 11.09.2012, at 03:48, Darren Rowley <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="vrqptnwmdzwJ">rowl...@...> wrote:

> Is there any way to mark a build as unstable if it takes too long? I'm aware of the build timeout plugin but that appears to actually abort the build. I don't want the build to be aborted I just want the job to become unstable.
>
> I guess I could do this we a groovy post build action but just wondering if I am missing a built in setting or plugin.
>
> thanks in advance,
> D.
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

nicolas de loof-2
so, you want the build to keep running until completion, but be UNSTABLE (or worst) cause it took too much time ?

2012/9/12 Darren Rowley <[hidden email]>
As I said in my original post I don't think it does as it aborts the build? Are you using it to just what I want? I could see an option..

On Wednesday, September 12, 2012 5:36:32 AM UTC+12, domi wrote:
maybe this helps: https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin
Domi

On 11.09.2012, at 03:48, Darren Rowley <[hidden email]> wrote:

> Is there any way to mark a build as unstable if it takes too long? I'm aware of the build timeout plugin but that appears to actually abort the build. I don't want the build to be aborted I just want the job to become unstable.
>
> I guess I could do this we a groovy post build action but just wondering if I am missing a built in setting or plugin.
>
> thanks in advance,
> D.
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

Darren Rowley
yes exactly..

On Thursday, September 13, 2012 9:26:40 AM UTC+12, Nicolas De loof wrote:
so, you want the build to keep running until completion, but be UNSTABLE (or worst) cause it took too much time ?

2012/9/12 Darren Rowley <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Gecxr76b1z0J">rowl...@...>
As I said in my original post I don't think it does as it aborts the build? Are you using it to just what I want? I could see an option..

On Wednesday, September 12, 2012 5:36:32 AM UTC+12, domi wrote:
maybe this helps: https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin
Domi

On 11.09.2012, at 03:48, Darren Rowley <[hidden email]> wrote:

> Is there any way to mark a build as unstable if it takes too long? I'm aware of the build timeout plugin but that appears to actually abort the build. I don't want the build to be aborted I just want the job to become unstable.
>
> I guess I could do this we a groovy post build action but just wondering if I am missing a built in setting or plugin.
>
> thanks in advance,
> D.
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

felix schwitzer-2
On 09/12/2012 11:46 PM, Darren Rowley wrote:
  > yes exactly..

so why not using a groovy postbuild script? See Example 4 on the wiki
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin

Felix
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mark build as unstable if it takes too long

Darren Rowley
Yes as I said originally said I thought I would end up doing it this way. Just sometimes it's nicer to do it with a plugin or something built in rather than having a duplicated groovy script pasted into every test. But that's fine...

thanks.

d.


On Friday, September 14, 2012 7:42:52 AM UTC+12, flx wrote:
On 09/12/2012 11:46 PM, Darren Rowley wrote:
  > yes exactly..

so why not using a groovy postbuild script? See Example 4 on the wiki
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin

Felix
Loading...