jenkins-job-builder/tests/yamlparser/fixtures
Marc Abramowitz 64e217f885 Make JJB python 3 compatible
Convert to use idioms that work for both python 3 and python 2.6+ and
ensure that a suitable version of dependencies is included for python 3
compatibility.

Update python-jenkins to 0.3.4 as the earliest version that supports
python 3 without any known regressions. Add an extra parser check for
missing 'command' due to changes in how argparse works under python 3.

To access the first element of a dict in both python 2 and 3,
'next(iter(dict.items()))' is used as the standard idiom to replace
'dict.items()[0]' as 'items()' returns an iterator in python 3 which
cannot be indexed. Using 'next(iter(..))' allows for both lists and
iterators to be passed in without unnecessary conversion of iterators to
lists which would be true of 'list(dict.items())[0]'.

Original change which was reverted due to breaking use of job-groups is
If4b35e2ceee8239379700e22eb79a3eaa04d6f0f. This replaces the previous
conversion of 'dict.items()[0]' to 'dict.popitem()', which would result
in removing a job-group when first called, thus defeating the benefit of
being able to reference the group mulitple times. This usage has been
replaced with 'next(iter(dict.items()))' as a non-modifying alternative
that still avoids creating unnecessary copies of data while working for
all supported versions of python.

Change-Id: I37e3b67c043dadddb54e16ee584bde3f79e6a770
2014-10-06 15:24:16 +01:00
..
add_managed_to_desc.xml Added config options to not overwrite jobs desc 2014-04-09 23:29:14 +01:00
add_managed_to_desc.yaml Added config options to not overwrite jobs desc 2014-04-09 23:29:14 +01:00
complete001.xml Add support for 'ignore-notify' in git SCM 2014-07-27 00:41:04 +02:00
complete001.yaml Fix ant builder definition in complete test 2014-06-21 21:57:27 +01:00
custom_distri.xml use {obj:key} as a way to pass an object and not only strings to templates 2014-03-16 15:30:48 +01:00
custom_distri.yaml use {obj:key} as a way to pass an object and not only strings to templates 2014-03-16 15:30:48 +01:00
dont_overwrite_desc.conf Added config options to not overwrite jobs desc 2014-04-09 23:29:14 +01:00
dont_overwrite_desc.xml Added config options to not overwrite jobs desc 2014-04-09 23:29:14 +01:00
dont_overwrite_desc.yaml Added config options to not overwrite jobs desc 2014-04-09 23:29:14 +01:00
include001.xml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include001.yaml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include001.yaml.inc Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw001.xml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw001.yaml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw002-cool.sh Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw002-cool.zsh Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw002.xml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw002.yaml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw-escape001-echo-vars.sh Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw-escape001.conf Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw-escape001.xml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-raw-escape001.yaml Use yaml local tags to support including files 2014-06-20 23:16:23 +01:00
include-rawunicode001-cool.sh Handle utf8 in JJB 2014-08-29 14:19:21 -07:00
include-rawunicode001.xml Handle utf8 in JJB 2014-08-29 14:19:21 -07:00
include-rawunicode001.yaml Handle utf8 in JJB 2014-08-29 14:19:21 -07:00
jobgroups_multi_use.xml Make JJB python 3 compatible 2014-10-06 15:24:16 +01:00
jobgroups_multi_use.yaml Make JJB python 3 compatible 2014-10-06 15:24:16 +01:00
scm_remote_deep_bug.xml Add support for 'ignore-notify' in git SCM 2014-07-27 00:41:04 +02:00
scm_remote_deep_bug.yaml Test creation of multiple jobs from templates 2014-05-10 22:21:06 +01:00
template_honor_defaults.xml Apply defaults to job-templates parameters 2014-08-22 23:35:54 +02:00
template_honor_defaults.yaml Apply defaults to job-templates parameters 2014-08-22 23:35:54 +02:00
templates001.xml Test creation of multiple jobs from templates 2014-05-10 22:21:06 +01:00
templates001.yaml Show usage of job-group 2014-07-12 20:58:27 +01:00
templates002.xml Support variable-specific substitutions in templates. 2014-05-12 15:03:10 +00:00
templates002.yaml Support variable-specific substitutions in templates. 2014-05-12 15:03:10 +00:00
unicode001.xml Handle utf8 in JJB 2014-08-29 14:19:21 -07:00
unicode001.yaml Handle utf8 in JJB 2014-08-29 14:19:21 -07:00
var_applied_in_defaults.xml Test defaults honors project variables 2014-07-24 15:54:13 +00:00
var_applied_in_defaults.yaml Test defaults honors project variables 2014-07-24 15:54:13 +00:00