diff --git a/tests/yamlparser/job_fixtures/job_honor_defaults_project_type.xml b/tests/yamlparser/job_fixtures/job_honor_defaults_project_type.xml new file mode 100644 index 000000000..b6108c1e9 --- /dev/null +++ b/tests/yamlparser/job_fixtures/job_honor_defaults_project_type.xml @@ -0,0 +1,14 @@ + + + + + false + + + <!-- Managed by Jenkins Job Builder --> + false + + + + diff --git a/tests/yamlparser/job_fixtures/job_honor_defaults_project_type.yaml b/tests/yamlparser/job_fixtures/job_honor_defaults_project_type.yaml new file mode 100644 index 000000000..58deac911 --- /dev/null +++ b/tests/yamlparser/job_fixtures/job_honor_defaults_project_type.yaml @@ -0,0 +1,11 @@ +# Project type defined at defaults should be honored. + +- defaults: + name: custom + project-type: pipeline + +- job: + name: sample-job + defaults: custom + dsl: | + build job: "job1" diff --git a/tests/yamlparser/job_fixtures/template_honor_defaults_project_type.xml b/tests/yamlparser/job_fixtures/template_honor_defaults_project_type.xml new file mode 100644 index 000000000..b6108c1e9 --- /dev/null +++ b/tests/yamlparser/job_fixtures/template_honor_defaults_project_type.xml @@ -0,0 +1,14 @@ + + + + + false + + + <!-- Managed by Jenkins Job Builder --> + false + + + + diff --git a/tests/yamlparser/job_fixtures/template_honor_defaults_project_type.yaml b/tests/yamlparser/job_fixtures/template_honor_defaults_project_type.yaml new file mode 100644 index 000000000..f90525e5b --- /dev/null +++ b/tests/yamlparser/job_fixtures/template_honor_defaults_project_type.yaml @@ -0,0 +1,16 @@ +# Project type defined at defaults should be honored. + +- defaults: + name: custom + project-type: pipeline + +- job-template: + name: sample-job + defaults: custom + dsl: | + build job: "job1" + +- project: + name: sample-name + jobs: + - sample-job