diff --git a/tests/yamlparser/job_fixtures/job_honor_default_elements.xml b/tests/yamlparser/job_fixtures/job_honor_default_elements.xml new file mode 100644 index 000000000..16b50b73b --- /dev/null +++ b/tests/yamlparser/job_fixtures/job_honor_default_elements.xml @@ -0,0 +1,21 @@ + + + + <!-- Managed by Jenkins Job Builder --> + false + false + false + true + true + + + + + echo hi + + + + + + + diff --git a/tests/yamlparser/job_fixtures/job_honor_default_elements.yaml b/tests/yamlparser/job_fixtures/job_honor_default_elements.yaml new file mode 100644 index 000000000..b951d80d5 --- /dev/null +++ b/tests/yamlparser/job_fixtures/job_honor_default_elements.yaml @@ -0,0 +1,12 @@ +# Job should take elements defined by defaults. + +- defaults: + name: global + concurrent: true + wrappers: + - timestamps + +- job: + name: sample-job + builders: + - shell: echo hi diff --git a/tests/yamlparser/job_fixtures/template_honor_default_elements.xml b/tests/yamlparser/job_fixtures/template_honor_default_elements.xml new file mode 100644 index 000000000..16b50b73b --- /dev/null +++ b/tests/yamlparser/job_fixtures/template_honor_default_elements.xml @@ -0,0 +1,21 @@ + + + + <!-- Managed by Jenkins Job Builder --> + false + false + false + true + true + + + + + echo hi + + + + + + + diff --git a/tests/yamlparser/job_fixtures/template_honor_default_elements.yaml b/tests/yamlparser/job_fixtures/template_honor_default_elements.yaml new file mode 100644 index 000000000..fe6da0131 --- /dev/null +++ b/tests/yamlparser/job_fixtures/template_honor_default_elements.yaml @@ -0,0 +1,17 @@ +# Template should take from defaults no just parameters, but other elements also. + +- defaults: + name: global + concurrent: true + wrappers: + - timestamps + +- job-template: + name: sample-job + builders: + - shell: echo hi + +- project: + name: sample-project + jobs: + - sample-job