Add the timeout property (http://ant.apache.org/manual/Tasks/junit.html) to 
your junit ant task (iff you use ant). This will terminate unit tests 
taking longer than the specified amount in milliseconds.

For the surefire maven plugin the relevant property is described hier:

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#forkedProcessTimeoutInSeconds

regards

Dirk

>             
> -------- Original-Nachricht --------
> Datum: Wed, 15 Feb 2012 10:06:36 +0000
> Von: Chris Withers <ch...@simplistix.co.uk>
> An: jenkinsci-users@googlegroups.com
> Betreff: kill builds that take too long?
> 
>             Hi All,
> 
> Is there a way I can get Jenkins to kill builds that take too long?
> I have one job whose unit tests periodically hang, and sometimes it's a 
> day or two before I notice (no news is good news, right? ;-) )
> 
> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting
>              - http://www.simplistix.co.uk
> 
        
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

Reply via email to