Add missing tests for some wrappers
Test for timeout plugin version before 1.14. Test for obtaining timeout plugin version by plugin name "Build Timeout". Test for nodejs-installator plugin, with nodejs version specified. Change-Id: I87e304b5b45c957a36ae2a109a176bf70ae94136
This commit is contained in:
parent
429118b487
commit
e27358111d
@ -0,0 +1,2 @@
|
|||||||
|
- shortName: nodejs
|
||||||
|
version: '123'
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project>
|
||||||
|
<buildWrappers>
|
||||||
|
<jenkins.plugins.nodejs.NodeJSBuildWrapper plugin="nodejs@123">
|
||||||
|
<nodeJSInstallationName>specific node</nodeJSInstallationName>
|
||||||
|
</jenkins.plugins.nodejs.NodeJSBuildWrapper>
|
||||||
|
</buildWrappers>
|
||||||
|
</project>
|
@ -0,0 +1,3 @@
|
|||||||
|
wrappers:
|
||||||
|
- nodejs-installator:
|
||||||
|
name: "specific node"
|
@ -0,0 +1,3 @@
|
|||||||
|
# Check that another plugin long name is also checked.
|
||||||
|
- longName: "Build Timeout"
|
||||||
|
version: "1.13"
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project>
|
||||||
|
<buildWrappers>
|
||||||
|
<hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
||||||
|
<timeoutMinutes>10</timeoutMinutes>
|
||||||
|
<failBuild>false</failBuild>
|
||||||
|
<writingDescription>false</writingDescription>
|
||||||
|
<timeoutPercentage>0</timeoutPercentage>
|
||||||
|
<timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
|
||||||
|
<timeoutType>absolute</timeoutType>
|
||||||
|
</hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
||||||
|
</buildWrappers>
|
||||||
|
</project>
|
@ -0,0 +1,3 @@
|
|||||||
|
wrappers:
|
||||||
|
- timeout:
|
||||||
|
timeout: 10
|
@ -0,0 +1,3 @@
|
|||||||
|
- longName: 'Jenkins build timeout plugin'
|
||||||
|
shortName: 'build-timeout'
|
||||||
|
version: "1.13"
|
14
tests/wrappers/fixtures/timeout/version-1.13/full-1.13.xml
Normal file
14
tests/wrappers/fixtures/timeout/version-1.13/full-1.13.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project>
|
||||||
|
<buildWrappers>
|
||||||
|
<hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
||||||
|
<timeoutMinutes>10</timeoutMinutes>
|
||||||
|
<timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
|
||||||
|
<failBuild>true</failBuild>
|
||||||
|
<writingDescription>sample timeout description</writingDescription>
|
||||||
|
<timeoutPercentage>150</timeoutPercentage>
|
||||||
|
<timeoutMinutesElasticDefault>90</timeoutMinutesElasticDefault>
|
||||||
|
<timeoutType>elastic</timeoutType>
|
||||||
|
</hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
||||||
|
</buildWrappers>
|
||||||
|
</project>
|
@ -0,0 +1,9 @@
|
|||||||
|
wrappers:
|
||||||
|
- timeout:
|
||||||
|
timeout: 10
|
||||||
|
timeout-var: 'BUILD_TIMEOUT'
|
||||||
|
fail: true
|
||||||
|
write-description: sample timeout description
|
||||||
|
elastic-percentage: 150
|
||||||
|
elastic-default-timeout: 90
|
||||||
|
type: elastic
|
Loading…
x
Reference in New Issue
Block a user