jenkins-job-builder/tests/yamlparser/job_fixtures/dimension_name_parameter_override.yaml
Vsevolod Fedorov d62faa15d4 Fix parameters overrides in dimensions specification
Task: 48621
Story: 2010883
Change-Id: Ia267f66c3832fb4a42a54a86bda259e96bb191fd
2023-08-16 11:54:18 +03:00

21 lines
544 B
YAML

# 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}