The maintainer field does not support a list. We're currently using the
"|" syntax to allow us to put in what looks like a list - but that syntax
is really putting in a long string that includes the "-" and "\n" characters:
$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> data = yaml.load(open('metadata.yaml', 'r'))
>>> data['maintainer']
'- dann frazier <email address hidden>\n- sean feole <email address hidden>\n'
>>>
Let's instead use the team e-mail address:
$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> data = yaml.load(open('metadata.yaml', 'r'))
>>> data['maintainer']
'<email address hidden>'
>>>
Only xenial is listed as supported at this time. Currently nothing
in this layer is known to prohibit trusty, but we can't test that
because we use the jenkins-charm layer which is restricted to xenial.
- Removed @only handler and replaced with @when_any
- Removed status_set & set_state because we don't have any other handlers with depends on configure_jenkins_jobbuilder()
- Hooked username & password into charm config, so we modify /etc/jenkins_jobs/jjb.init accordingly when user/passwd changes
Use jenkins-charm layer instead of installing jenkins ourselves
jenkins-charm isn't an official/published layer at this time, so
you have to clone that layer to a local directory, and set LAYER_PATH to
that directory, so 'charm build' can find it.
Fixed a spelling error in the comments of scalebot.py.
- Fixed the if statement - changed if/pass/else to simply if.
- Removed Pathlib no need to touch file, (Cruft left over from debug)