~vila/uci-engine/1-run-worker-no-jenkins

« back to all changes in this revision

Viewing changes to charms/precise/lander-jenkins/hooks/hooks.py

  • Committer: Andy Doan
  • Date: 2014-04-21 20:49:42 UTC
  • Revision ID: andy.doan@canonical.com-20140421204942-5vlp6rqq3xpql2mr
lander: run_worker.py to use script rather than jenkins

This converts the run_worker.py script of the lander to use
our own scripts rather than Jenkins. It will run each step
using a new command lander_process_ticket.py and store those
under /var/log/ci-tickets

The publish action had to change how its run as well. The current
working directory its run from may not have write access,
so we stream the output to stdout and a buffer that we
then put into swift

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
    else:
224
224
        _install_from_bzr(config, upgrade)
225
225
 
 
226
    user = config.get('uid', 'nobody')
 
227
    group = config.get('gid', 'nogroup')
 
228
    core.host.mkdir('/var/log/ci-tickets', user, group, 0755)
226
229
 
227
230
def upgrade_charm(config):
228
231
    install(config, True)