jenkins-job-builder/jenkins_jobs/modules
Wayne Warren ae1fb60f16
Disentangle YamlParser and ModuleRegistry classes
Create the ModuleRegistry anywhere other than inside the YamlParser
class. This will make it slightly easier to factor a XmlGenerator out
of YamlParser, but I also want to work toward eliminating the circular
references between YamlParser and ModuleRegistry which have been
making it difficult to understand overall program flow.

This commit also replaces all YamlParser instances being passed to
Jenkins job config generating functions with a ModuleRegistry. Mostly
it seems like the parser was only needed to call the ModuleRegistry's
'dispatch' method which to be honest I don't fully understand. This is
where the circular references mentioned in previously come in...it
seems like the "dispatch" function needs access to the (mostly) raw
data contained by the parser, so it took that as a parameter.

The need for the YamlParser's job data can be satisfied by assigning
it to a property on the ModuleRegistry object before Yaml expansion or
XML generation begins; by doing this, we allow the ModuleRegistry to
avoid referencing the parser.

Change-Id: I4b571299b81e708540392ad963163fe092acf1d9
2016-08-18 22:42:24 -04:00
..
__init__.py Refactor modules and templating. 2012-08-10 16:00:42 +00:00
base.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
builders.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
general.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
helpers.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
hipchat_notif.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
hudson_model.py Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
metadata.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
notifications.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
parameters.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
project_externaljob.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_flow.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_freestyle.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_matrix.py Partial support Yaml Axis Plugin 2016-03-01 16:52:28 +01:00
project_maven.py Remove the colon after default in docstring 2016-06-17 02:19:13 +08:00
project_multijob.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_workflow.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
properties.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
publishers.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
reporters.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
scm.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
triggers.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
wrappers.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
zuul.py Remove YamlParser references from JJB modules. 2016-08-05 09:01:30 -07:00