36b9d8bfca
Use '!include-raw-expand:' instead of '!include-raw:' and '!include-raw-verbatim:' instead of '!include-raw-escape:'. Tags '!include-raw:' and '!include-raw-escape:' are now deprecated. Change-Id: I3cc5ab9f73d03de1ba09cbc4568366a3bb464a08
46 lines
1.2 KiB
XML
46 lines
1.2 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
|
|
#
|
|
# Sample script showing how the yaml include-raw tag can be used
|
|
# to inline scripts that are maintained outside of the jenkins
|
|
# job yaml configuration.
|
|
|
|
echo "hello world"
|
|
|
|
exit 0
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/bash
|
|
#
|
|
# sample script to check that brackets aren't expanded
|
|
# when using the include-raw application yaml tag
|
|
|
|
VAR1="hello"
|
|
VAR2="world"
|
|
VAR3="${VAR1} ${VAR2}"
|
|
|
|
[[ -n "${VAR3}" ]] && {
|
|
# this next section is executed as one
|
|
echo "${VAR3}"
|
|
exit 0
|
|
}
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
</builders>
|
|
<publishers/>
|
|
<buildWrappers/>
|
|
</project>
|