diff options
-rwxr-xr-x | jenkinstool | 4 |
1 files changed, 3 insertions, 1 deletions
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() |