Khai Do f59ebc1cf9 add timeout-var option to the timeout module
jenkins build-timeout plugin version 1.13 has a new option[1] to expose the
timeout value via an environment variable.  Adding this option to the
equivalent jjb module.  Also created tests for the examples.

[1] https://github.com/jenkinsci/build-timeout-plugin/pull/22

Partial-Bug: #1287883
Change-Id: Ia0d6570e9aae55ceadf076716fc8ad7688ff6214
2014-04-21 10:16:22 -07:00

14 lines
548 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<buildWrappers>
<hudson.plugins.build__timeout.BuildTimeoutWrapper>
<timeoutMinutes>3</timeoutMinutes>
<timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
<failBuild>true</failBuild>
<writingDescription>false</writingDescription>
<timeoutPercentage>150</timeoutPercentage>
<timeoutMinutesElasticDefault>90</timeoutMinutesElasticDefault>
<timeoutType>elastic</timeoutType>
</hudson.plugins.build__timeout.BuildTimeoutWrapper>
</buildWrappers>
</project>