ecf3933dc2
If, for whatever reason, the version of the build-timeout plugin can not be detected, assume that we use a newer version (>= 1.14). Version 1.14 is already ~ 2 1/2 years old so this is a sane assumption. Also adjust fixtures to use the newer plugin version xml output. Change-Id: I86295933d0c3247f55d0114473fc9c8f8feb7441 Signed-off-by: Bertrand Roussel <broussel@sierrawireless.com> Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
76 lines
2.6 KiB
XML
76 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<actions/>
|
|
<description><!-- Managed by Jenkins Job Builder --></description>
|
|
<keepDependencies>false</keepDependencies>
|
|
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
|
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
|
<concurrentBuild>false</concurrentBuild>
|
|
<canRoam>true</canRoam>
|
|
<properties/>
|
|
<scm class="hudson.scm.NullSCM"/>
|
|
<builders>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/bash
|
|
#
|
|
# version 1.2 of the echo vars script
|
|
|
|
MSG="hello world"
|
|
VERSION="1.2"
|
|
|
|
[[ -n "${MSG}" ]] && {
|
|
# this next section is executed as one
|
|
echo "${MSG}"
|
|
echo "version: ${VERSION}"
|
|
exit 0
|
|
}
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
</builders>
|
|
<publishers/>
|
|
<buildWrappers>
|
|
<hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
|
<strategy class="hudson.plugins.build_timeout.impl.ElasticTimeOutStrategy">
|
|
<timeoutPercentage>150</timeoutPercentage>
|
|
<numberOfBuilds>0</numberOfBuilds>
|
|
<timeoutMinutesElasticDefault>90</timeoutMinutesElasticDefault>
|
|
</strategy>
|
|
<operationList>
|
|
<hudson.plugins.build__timeout.operations.FailOperation/>
|
|
</operationList>
|
|
</hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
|
<org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/bash
|
|
echo "Doing somethiung cool"
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/zsh
|
|
echo "Doing somethin cool with zsh"
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Ant>
|
|
<targets>target1 target2</targets>
|
|
<antName>Standard Ant</antName>
|
|
</hudson.tasks.Ant>
|
|
<EnvInjectBuilder>
|
|
<info>
|
|
<propertiesFilePath>example.prop</propertiesFilePath>
|
|
<propertiesContent>EXAMPLE=foo-bar</propertiesContent>
|
|
</info>
|
|
</EnvInjectBuilder>
|
|
</buildSteps>
|
|
</org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper>
|
|
<com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
|
|
<includes>file1,file2*.txt</includes>
|
|
<excludes>file2bad.txt</excludes>
|
|
<flatten>false</flatten>
|
|
<includeAntExcludes>false</includeAntExcludes>
|
|
<relativeTo>userContent</relativeTo>
|
|
<hudsonHomeRelative>false</hudsonHomeRelative>
|
|
</com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
|
|
</buildWrappers>
|
|
</project>
|