diff --git a/tests/yamlparser/job_fixtures/project_defaults.xml b/tests/yamlparser/job_fixtures/project_defaults.xml new file mode 100644 index 000000000..4574b74c5 --- /dev/null +++ b/tests/yamlparser/job_fixtures/project_defaults.xml @@ -0,0 +1,20 @@ + + + + <!-- Managed by Jenkins Job Builder --> + false + false + false + false + true + + + + + echo var=var-value + + + + + + diff --git a/tests/yamlparser/job_fixtures/project_defaults.yaml b/tests/yamlparser/job_fixtures/project_defaults.yaml new file mode 100644 index 000000000..1f15d4979 --- /dev/null +++ b/tests/yamlparser/job_fixtures/project_defaults.yaml @@ -0,0 +1,17 @@ +# Defaults defined at project should be honored. + +- defaults: + name: custom-defaults + var: var-value + +- job-template: + name: sample-job + builders: + - shell: | + echo var={var} + +- project: + name: sample-project + defaults: custom-defaults + jobs: + - sample-job