~matsubara/charms/precise/ci-configurator/ciaas-apt-update

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Adam Gandelman
  • Date: 2014-01-22 20:57:11 UTC
  • mfrom: (70.1.1 ci-configurator)
  • Revision ID: adamg@canonical.com-20140122205711-6c7c9h7t6jvbzmf2
[gnuoy] Only do the jjb install when the jjb relation is joined

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    common.ensure_user()
30
30
    if not os.path.exists(common.CONFIG_DIR):
31
31
        os.mkdir(common.CONFIG_DIR)
32
 
    jjb.install()
33
32
 
34
33
 
35
34
@hooks.hook()
83
82
    Inform jenkins of any plugins our tests may require, as defined in the
84
83
    control.yml of the config repo
85
84
    """
 
85
    jjb.install()
86
86
    plugins = jjb.required_plugins()
87
87
    if plugins:
88
88
        relation_set(required_plugins=' '.join(plugins), relation_id=rid)