Tests: Add test for merging defaults for a job
Change-Id: I04cd8f080fea7b4cb87182db20ea4d164d6fa267
This commit is contained in:
parent
2a8df2ced9
commit
1f43cfb8a8
19
tests/yamlparser/job_fixtures/concat_defaults003_job.xml
Normal file
19
tests/yamlparser/job_fixtures/concat_defaults003_job.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description>Custom description<!-- Managed by Jenkins Job Builder --></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<canRoam>true</canRoam>
|
||||
<properties/>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>echo hi</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
18
tests/yamlparser/job_fixtures/concat_defaults003_job.yaml
Normal file
18
tests/yamlparser/job_fixtures/concat_defaults003_job.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
# Global defaults are not used, not merged to custom ones if used from a job.
|
||||
|
||||
- defaults:
|
||||
name: global
|
||||
description: 'Global description'
|
||||
concurrent: true
|
||||
wrappers:
|
||||
- timestamps
|
||||
|
||||
- defaults:
|
||||
name: custom-defaults
|
||||
description: 'Custom description'
|
||||
|
||||
- job:
|
||||
name: sample-job
|
||||
defaults: custom-defaults
|
||||
builders:
|
||||
- shell: echo hi
|
Loading…
x
Reference in New Issue
Block a user