jenkins-job-builder/tests/yamlparser/fixtures/template_override_project_level_defaults.yaml
Darragh Bailey 3ae187b1a7 Add test for name defaults overridden by template
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
2015-01-31 10:48:58 -08:00

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}'