jenkins-job-builder/tests/yamlparser/job_fixtures/nested_dimension_parameter_usage.yaml
Vsevolod Fedorov cd057a858a Tests: Add test for nested dimention parameter usage
Change-Id: I3c407b9ddfa5d2ad0c5041e2fb7953cea8935bbd
2023-01-26 11:11:13 +03:00

25 lines
591 B
YAML

# Parameter defined at template level (param_3) should see parameters defined under project axes level.
- builder:
name: sample_builder
builders:
- shell: 'echo {param_3}'
- job-template:
name: job-{axis_1}
param_3: !j2: '[{{ param_1 | default("") }}] [{{ param_2 | default("") }}]'
builders:
- sample_builder:
param_3: '{param_3}'
- project:
name: sample-project
param_1: param_1_group_default
axis_1:
- key_1:
param_1: param_1_value_1
- key_2:
param_2: param_2_value_2
jobs:
- job-{axis_1}