3ae187b1a7
JJB currently allows for named defaults to be specified at both the project and template level. Add a test case that exercises this and demonstrates that current interpolation ignores variables without definitions if they are not subsequently used when expanding the template. Change-Id: Iffdda9f79c12fb71077bf621f8b08381dbcc9ac1
34 lines
650 B
YAML
34 lines
650 B
YAML
- job-template:
|
|
name: '{publish}_foo'
|
|
display-name: '{publish} foo'
|
|
defaults: testdefaults
|
|
|
|
- job-template:
|
|
name: '{publish}_bar'
|
|
display-name: '{publish} bar'
|
|
defaults: testdefaults
|
|
publishers:
|
|
- email:
|
|
recipients: qa@example.com
|
|
|
|
- project:
|
|
name: dev
|
|
publish: 'experimental'
|
|
defaults: testdefaults
|
|
recipients: dev@example.com
|
|
jobs:
|
|
- '{publish}_foo'
|
|
|
|
- project:
|
|
name: foobar
|
|
publish: 'production'
|
|
defaults: testdefaults
|
|
jobs:
|
|
- '{publish}_bar'
|
|
|
|
- defaults:
|
|
name: testdefaults
|
|
publishers:
|
|
- email-ext:
|
|
recipients: '{recipients}'
|