Add a plugin for the jobs maximum time limit
authorLiu jue <juex.liu@intel.com>
Fri, 8 Aug 2014 05:58:06 +0000 (13:58 +0800)
committerLin A Yang <lin.a.yang@intel.com>
Wed, 13 Aug 2014 10:12:04 +0000 (13:12 +0300)
Change-Id: I429d17cb9fe7b8f8030eb3283d6a9b57f4629991
Fixes: #1937

jobs/create-snapshot/config.xml

index 0636990..2bbdf42 100644 (file)
@@ -105,6 +105,14 @@ if(matcher?.matches()) {
       <deleteDirs>false</deleteDirs>
       <cleanupParameter></cleanupParameter>
     </hudson.plugins.ws__cleanup.PreBuildCleanup>
+    <hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="build-timeout@1.14">
+      <strategy class="hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy">
+        <timeoutMinutes>60</timeoutMinutes>
+      </strategy>
+      <operationList>
+        <hudson.plugins.build__timeout.operations.FailOperation/>
+      </operationList>
+    </hudson.plugins.build__timeout.BuildTimeoutWrapper>
     <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4">
       <includes>configuration, jenkins-scripts/job_create_snapshot.py, jenkins-scripts/common/*</includes>
       <excludes></excludes>