Tests: Add test for overriding dimention name parameter
Change-Id: I1f3c2bdf4301fbea200abc465629657d91957a05
This commit is contained in:
parent
c1a67471e8
commit
f66c4e6809
@ -0,0 +1,40 @@
|
||||
<?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>echo param_1_key param_2_value_1
|
||||
</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
<?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>echo param_1_value_2 param_2_value_2
|
||||
</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
@ -0,0 +1,21 @@
|
||||
# If a parameter with the same name as dimension name specified, it's value
|
||||
# should be used as dimension parameter value.
|
||||
# For examle, 'param_1' is overriden for 'param_2_key' with 'param_1_value_2' value.
|
||||
|
||||
- job-template:
|
||||
name: job-{param_1}
|
||||
builders:
|
||||
- shell: |
|
||||
echo {param_1} {param_2}
|
||||
|
||||
|
||||
- project:
|
||||
name: sample-project
|
||||
param_1:
|
||||
- param_1_key:
|
||||
param_2: param_2_value_1
|
||||
- param_2_key:
|
||||
param_1: param_1_value_2
|
||||
param_2: param_2_value_2
|
||||
jobs:
|
||||
- job-{param_1}
|
Loading…
Reference in New Issue
Block a user