Lines Matching full:jobs
9 """Submit one or more try jobs."""
26 JOBS_JSON = os.path.join(INFRA_BOTS, 'jobs.json')
37 """Obtain the list of jobs from the given repo."""
48 jobs = json.loads(subprocess.check_output([
49 utils.GIT, 'show', 'master:infra/bots/jobs.json']))
50 return (BUCKET_SKIA_INTERNAL, jobs)
55 d = 'Helper script for triggering try jobs defined in %s.' % JOBS_JSON
58 help='Just list the jobs; do not trigger anything.')
60 help=('If set, include internal jobs. You must have '
66 # Load and filter the list of jobs.
67 jobs = []
69 jobs.append((BUCKET_SKIA_PRIMARY, json.load(f)))
71 jobs.append(get_jobs(REPO_INTERNAL))
72 jobs.extend(update_meta_config.CQ_INCLUDE_CHROMIUM_TRYBOTS)
75 for bucket, job_list in jobs:
79 jobs = filtered_jobs
81 # Display the list of jobs.
82 if len(jobs) == 0:
83 print 'Found no jobs matching "%s"' % repr(args.job)
86 for bucket, job_list in jobs:
88 print 'Found %d jobs:' % count
89 for bucket, job_list in jobs:
97 # Prompt before triggering jobs.
98 resp = raw_input('\nDo you want to trigger these jobs? (y/n or i for '
105 for bucket, job_list in jobs:
113 jobs = filtered_jobs
115 # Trigger the try jobs.
116 for bucket, job_list in jobs: