mark build as unstable if it takes too long

236 views
Skip to first unread message

Darren Rowley

unread,
Sep 10, 2012, 9:48:37 PM9/10/12
to jenkins...@googlegroups.com
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.

domi

unread,
Sep 11, 2012, 1:36:23 PM9/11/12
to jenkins...@googlegroups.com

Richard Bywater

unread,
Sep 11, 2012, 5:03:17 PM9/11/12
to jenkins...@googlegroups.com
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.

Darren Rowley

unread,
Sep 12, 2012, 5:05:01 PM9/12/12
to jenkins...@googlegroups.com, do...@fortysix.ch
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..

nicolas de loof

unread,
Sep 12, 2012, 5:26:14 PM9/12/12
to jenkins...@googlegroups.com, do...@fortysix.ch
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 <rowl...@gmail.com>

Darren Rowley

unread,
Sep 12, 2012, 5:46:38 PM9/12/12
to jenkins...@googlegroups.com, do...@fortysix.ch
yes exactly..

felix schwitzer

unread,
Sep 13, 2012, 3:42:42 PM9/13/12
to jenkins...@googlegroups.com
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

Darren Rowley

unread,
Sep 13, 2012, 5:32:49 PM9/13/12
to jenkins...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages