| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <project> |
| 3 | <actions/> |
| 4 | <description><!-- Managed by Jenkins Job Builder --></description> |
| 5 | <keepDependencies>false</keepDependencies> |
| 6 | <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> |
| 7 | <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> |
| 8 | <concurrentBuild>false</concurrentBuild> |
| 9 | <canRoam>true</canRoam> |
| 10 | <properties/> |
| 11 | <scm class="hudson.scm.NullSCM"/> |
| 12 | <builders> |
| 13 | <hudson.tasks.Shell> |
| 14 | <command>#!/bin/bash |
| 15 | # |
| 16 | # Sample script showing how the yaml include-raw tag can be used |
| 17 | # to inline scripts that are maintained outside of the jenkins |
| 18 | # job yaml configuration. |
| 19 | |
| 20 | echo "hello world" |
| 21 | |
| 22 | exit 0 |
| 23 | </command> |
| 24 | </hudson.tasks.Shell> |
| 25 | <hudson.tasks.Shell> |
| 26 | <command>#!/bin/bash |
| 27 | # |
| 28 | # sample script to check that brackets are expanded |
| 29 | # when using the include-raw application yaml tag |
| 30 | |
| 31 | VAR1="hello" |
| 32 | VAR2="world" |
| 33 | VAR3="${VAR1} ${VAR2}" |
| 34 | |
| 35 | [[ -n "${VAR3}" ]] && { |
| 36 | # this next section is executed as one |
| 37 | echo "${VAR3}" |
| 38 | exit 0 |
| 39 | } |
| 40 | </command> |
| 41 | </hudson.tasks.Shell> |
| 42 | </builders> |
| 43 | <publishers/> |
| 44 | <buildWrappers/> |
| 45 | </project> |