From b483f475f3b1fbee5105c56e051885ac5b0fd3a6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 22 Sep 2012 14:26:48 +0100 Subject: Run all when user does not specify jobs to run; log start/end of job --- jenkinstool | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jenkinstool') diff --git a/jenkinstool b/jenkinstool index 1ba1022..84693b1 100755 --- a/jenkinstool +++ b/jenkinstool @@ -758,7 +758,7 @@ class JenkinsTool(cliapp.Application): for job_id, config_xml in pairs: make_it_so(job_id, config_xml) all_jobs.append(job_id) - if project['name'] in project_names: + if not project_names or project['name'] in project_names: job_ids.append(job_id) found_projects.add(project['name']) @@ -777,6 +777,7 @@ class JenkinsTool(cliapp.Application): ts['jobs'] = job_ids for job_id in job_ids: + logging.info('Starting job %s' % job_id) ts['job'] = job_id prev = latest = jenkins.get_latest_build_number(job_id) jenkins.run_job(job_id) @@ -788,6 +789,7 @@ class JenkinsTool(cliapp.Application): info = jenkins.get_build_info(job_id, latest) if info['result'] is not None: break + logging.info('Finished job %s' % job_id) if info['result'] != 'SUCCESS': ts.clear() ts.finish() -- cgit v1.2.1