Abort the verifier build after 10' of inactivity
If the verifier build is not doing anything for more than
10 minutes, it is better to abort and retry again instead of
waiting.
The build flow will retry 3 times anyway, the aborted build
shouldn't impact the final outcome of the verification.
Change-Id: I09392340373e704d091fc1b4b6f2bffab14018a8
diff --git a/jenkins/gerrit-verifier.yaml b/jenkins/gerrit-verifier.yaml
index 101341c..b647541 100644
--- a/jenkins/gerrit-verifier.yaml
+++ b/jenkins/gerrit-verifier.yaml
@@ -86,10 +86,16 @@
additional-options: -fbdir /tmp
debug: true
shutdown-with-build: false
- - timeout:
- timeout: 90
- type: absolute
- fail: false
+ - raw:
+ xml: |
+ <hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="build-timeout@1.16">
+ <strategy class="hudson.plugins.build_timeout.impl.NoActivityTimeOutStrategy">
+ <timeoutSecondsString>600</timeoutSecondsString>
+ </strategy>
+ <operationList>
+ <hudson.plugins.build__timeout.operations.AbortOperation/>
+ </operationList>
+ </hudson.plugins.build__timeout.BuildTimeoutWrapper>
- raw:
xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
publishers: