jenkins-job-builder/jenkins_jobs
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
..
cli Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
modules Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
sphinx Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
__init__.py Refactor modules and templating. 2012-08-10 16:00:42 +00:00
builder.py Move 'delete' yaml parsing to JenkinsJobs.execute. 2016-08-05 08:32:46 -07:00
config.py Correct configuration file usage. 2016-08-05 11:34:58 -07:00
constants.py Remove YamlParser from jenkins_jobs.builder 2015-04-22 11:59:07 -07:00
errors.py Move JJBConfigException to errors module. 2016-07-22 10:14:17 -07:00
formatter.py Python 3: Don't use BaseException.message attribute 2016-07-08 10:29:47 +09:00
local_yaml.py Remove ordereddict support from py26 2016-02-09 17:22:42 +01:00
parallel.py Add parallelization options 2015-12-01 10:05:04 -05:00
parser.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
registry.py Disentangle YamlParser and ModuleRegistry classes 2016-08-18 22:42:24 -04:00
utils.py Finish removing code from jenkins_jobs.cmd 2016-07-22 17:15:36 +01:00
version.py Get verison info for jenkins-job-builder 2014-10-22 09:46:10 -07:00
xml_config.py Remove Python 2.6 compatibility patch. 2016-01-08 15:54:30 +00:00