jenkins-job-builder/tests/yamlparser/fixtures/concat_defaults001.yaml
Richard Pijnenburg b56e8812c7 Adding tests surrounding handling of defaults values
waynr fixed a bug but explained in concat_defaults002
This bug happens when some values are specified in an other defaults
namespace then global.
This causes JJB to fail that its unable to find the required keys
becasue these were not merged correctly

Change-Id: Id0df24ba7cf8281389c2ed7af7ee716047d0e4a5
2015-05-27 18:24:54 +02:00

46 lines
943 B
YAML

- defaults:
name: global
confversion: 'v0.42'
fooversion: 'v0.10'
description: 'my global description'
- defaults:
name: myproject
confversion: 'v0.50'
description: 'my project description'
- defaults:
name: myproject2
fooversion: 'v0.22'
description: 'my project 2 description'
- project:
name: project
jobs:
- job-group
- job-group:
name: job-group
jobs:
- job-template0
- job-template1
- job-template2
- job-template:
name: job-template0
builders:
- shell: "echo 'confVersion: {confversion} & fooVersion: {fooversion}'"
- job-template:
name: job-template1
defaults: myproject
builders:
- shell: "echo 'confVersion: {confversion} & fooVersion: {fooversion}'"
- job-template:
name: job-template2
defaults: myproject2
builders:
- shell: "echo 'confVersion: {confversion} & fooVersion: {fooversion}'"