Add tests for inner macro expansion.
Change-Id: I535f3f0627c0948b951074977e15be04920790cd
This commit is contained in:
parent
eddb40babd
commit
c1da0b15fb
|
@ -0,0 +1,31 @@
|
|||
<?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>
|
||||
<org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder>
|
||||
<conditionalbuilders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>fine</command>
|
||||
</hudson.tasks.Shell>
|
||||
<hudson.tasks.Shell>
|
||||
<command/>
|
||||
</hudson.tasks.Shell>
|
||||
</conditionalbuilders>
|
||||
<runCondition class="org.jenkins_ci.plugins.run_condition.core.FileExistsCondition">
|
||||
<file>filename</file>
|
||||
<baseDir class="org.jenkins_ci.plugins.run_condition.common.BaseDirectory$Workspace"/>
|
||||
</runCondition>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"/>
|
||||
</org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
|
@ -0,0 +1,19 @@
|
|||
- builder:
|
||||
name: Macro
|
||||
builders:
|
||||
- shell: ""
|
||||
|
||||
- job:
|
||||
name: Job
|
||||
builders:
|
||||
- conditional-step:
|
||||
condition-kind: file-exists
|
||||
condition-filename: 'filename'
|
||||
steps:
|
||||
- shell: "fine"
|
||||
- Macro
|
||||
|
||||
- project:
|
||||
name: meow
|
||||
jobs:
|
||||
- Job
|
|
@ -0,0 +1,36 @@
|
|||
<?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/>
|
||||
<publishers>
|
||||
<org.jenkins__ci.plugins.flexible__publish.FlexiblePublisher>
|
||||
<publishers>
|
||||
<org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher>
|
||||
<condition class="org.jenkins_ci.plugins.run_condition.core.FileExistsCondition">
|
||||
<file>filename</file>
|
||||
<baseDir class="org.jenkins_ci.plugins.run_condition.common.BaseDirectory$Workspace"/>
|
||||
</condition>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"/>
|
||||
<publisherList>
|
||||
<hudson.plugins.build__publisher.BuildPublisher>
|
||||
<publishUnstableBuilds>true</publishUnstableBuilds>
|
||||
<publishFailedBuilds>true</publishFailedBuilds>
|
||||
</hudson.plugins.build__publisher.BuildPublisher>
|
||||
<hudson.plugins.chucknorris.CordellWalkerRecorder>
|
||||
<factGenerator/>
|
||||
</hudson.plugins.chucknorris.CordellWalkerRecorder>
|
||||
</publisherList>
|
||||
</org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher>
|
||||
</publishers>
|
||||
</org.jenkins__ci.plugins.flexible__publish.FlexiblePublisher>
|
||||
</publishers>
|
||||
<buildWrappers/>
|
||||
</project>
|
|
@ -0,0 +1,19 @@
|
|||
- publisher:
|
||||
name: Macro
|
||||
publishers:
|
||||
- chuck-norris
|
||||
|
||||
- job:
|
||||
name: Job
|
||||
publishers:
|
||||
- conditional-publisher:
|
||||
- condition-kind: file-exists
|
||||
condition-filename: 'filename'
|
||||
action:
|
||||
- build-publisher
|
||||
- Macro
|
||||
|
||||
- project:
|
||||
name: meow
|
||||
jobs:
|
||||
- Job
|
|
@ -0,0 +1,29 @@
|
|||
<?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/>
|
||||
<publishers>
|
||||
<org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
||||
<buildSteps>
|
||||
<hudson.tasks.Shell>
|
||||
<command>fine</command>
|
||||
</hudson.tasks.Shell>
|
||||
<hudson.tasks.Shell>
|
||||
<command/>
|
||||
</hudson.tasks.Shell>
|
||||
</buildSteps>
|
||||
<scriptOnlyIfSuccess>true</scriptOnlyIfSuccess>
|
||||
<scriptOnlyIfFailure>false</scriptOnlyIfFailure>
|
||||
<markBuildUnstable>false</markBuildUnstable>
|
||||
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
||||
</publishers>
|
||||
<buildWrappers/>
|
||||
</project>
|
|
@ -0,0 +1,17 @@
|
|||
- builder:
|
||||
name: Macro
|
||||
builders:
|
||||
- shell: ""
|
||||
|
||||
- job:
|
||||
name: Job
|
||||
publishers:
|
||||
- postbuildscript:
|
||||
builders:
|
||||
- shell: "fine"
|
||||
- Macro
|
||||
|
||||
- project:
|
||||
name: meow
|
||||
jobs:
|
||||
- Job
|
|
@ -0,0 +1,45 @@
|
|||
<?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/>
|
||||
<publishers/>
|
||||
<buildWrappers>
|
||||
<hudson.plugins.release.ReleaseWrapper>
|
||||
<doNotKeepLog>true</doNotKeepLog>
|
||||
<overrideBuildParameters>false</overrideBuildParameters>
|
||||
<releaseVersionTemplate/>
|
||||
<parameterDefinitions>
|
||||
<hudson.model.StringParameterDefinition>
|
||||
<name>RELEASE_BRANCH</name>
|
||||
<description>Git branch to release from.</description>
|
||||
<defaultValue/>
|
||||
</hudson.model.StringParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>FOO</name>
|
||||
<description>A parameter named FOO, defaults to 'false'.</description>
|
||||
<defaultValue>false</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
<postSuccessfulBuildSteps>
|
||||
<hudson.tasks.Shell>
|
||||
<command/>
|
||||
</hudson.tasks.Shell>
|
||||
</postSuccessfulBuildSteps>
|
||||
<postSuccessfulBuildSteps>
|
||||
<hudson.tasks.Shell>
|
||||
<command>#!/bin/bash
|
||||
copy_build_artefacts.sh
|
||||
</command>
|
||||
</hudson.tasks.Shell>
|
||||
</postSuccessfulBuildSteps>
|
||||
</hudson.plugins.release.ReleaseWrapper>
|
||||
</buildWrappers>
|
||||
</project>
|
|
@ -0,0 +1,34 @@
|
|||
- builder:
|
||||
name: builder-macro-1
|
||||
builders:
|
||||
- shell: ""
|
||||
|
||||
- parameter:
|
||||
name: parameter-macro-1
|
||||
parameters:
|
||||
- string:
|
||||
name: RELEASE_BRANCH
|
||||
default: ''
|
||||
description: Git branch to release from.
|
||||
|
||||
- job:
|
||||
name: Job
|
||||
wrappers:
|
||||
- release:
|
||||
keep-forever: false
|
||||
parameters:
|
||||
- parameter-macro-1
|
||||
- bool:
|
||||
name: FOO
|
||||
default: false
|
||||
description: "A parameter named FOO, defaults to 'false'."
|
||||
post-success:
|
||||
- builder-macro-1
|
||||
- shell: |
|
||||
#!/bin/bash
|
||||
copy_build_artefacts.sh
|
||||
|
||||
- project:
|
||||
name: meow
|
||||
jobs:
|
||||
- Job
|
Loading…
Reference in New Issue