~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to schedule_chaos_tests.py

  • Committer: Curtis Hovey
  • Date: 2016-04-10 15:23:18 UTC
  • Revision ID: curtis@canonical.com-20160410152318-ntfymsv9eiw63vt2
Addedd daily streams to get_amy.py get_ami.py tests/test_get_ami.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
from jujuci import add_credential_args
8
8
from utility import (
9
9
    find_candidates,
 
10
    get_auth_token,
10
11
    )
11
12
 
12
13
 
13
14
def start_job(root, job, juju_bin, user, password, number):
14
15
    """Use Jenkins API to start a job."""
15
 
    jenkins = Jenkins('http://juju-ci.vapour.ws:8080', user, password)
 
16
    jenkins = Jenkins('http://localhost:8080', user, password)
 
17
    token = get_auth_token(root, job)
16
18
    job_params = {'juju_bin': juju_bin, 'sequence_number': number}
17
 
    jenkins.build_job(job, job_params)
 
19
    jenkins.build_job(job, job_params, token=token)
18
20
 
19
21
 
20
22
def parse_args(argv=None):