diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-09-22 14:26:48 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-09-22 14:26:48 +0100 |
commit | b483f475f3b1fbee5105c56e051885ac5b0fd3a6 (patch) | |
tree | f262cb5385ab2d9b096086ec67b26a72ccfdd9d5 /jenkinstool | |
parent | 7f5c956ec03dc9e295aa3e681b4e73d675cf8dee (diff) | |
download | jenkinstool-b483f475f3b1fbee5105c56e051885ac5b0fd3a6.tar.gz |
Run all when user does not specify jobs to run; log start/end of job
Diffstat (limited to 'jenkinstool')
-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() |