jenkins-job-builder/tests/yamlparser/exceptions/incorrect_template_dimensions.yaml
Darragh Bailey 64537f5125 Improve logger output for expanding templates
Output the variable inputs used that trigger an error when expanding
template names to the error logger channel in a sensible format.

Ensures that when indented variable inputs for templates result in
exceptions when expanding a template name, that the project, template
name and variables that failed to be iterated over are outputted in a
log error message along with the original set of inputs from the
project definition to make it easier for end users to find where the
error has been made in a JJB definition.

Add code to allow dumping of variables stored in OrderedDict
transparently to match the input format used in JJB definitions and
hide the implementation detail of using OrderedDict to be within the
localyaml library.

Change-Id: I660bb0ca3b109e1a861948d6a867f185047b90ae
2016-09-14 15:15:04 +01:00

17 lines
321 B
YAML

- project:
name: template_incorrect_args
os:
- ubuntu
- jessie
stream:
- current:
branch: current
- master:
branch: master
jobs:
- 'template-incorrect-args-{stream}-{os}'
- job-template:
name: 'template-incorrect-args-{stream}-{os}'
disabled: true