Skip to content

Commit

Permalink
put a try on the create job
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Sep 27, 2012
1 parent 39b1ec0 commit 5798c57
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/buildfarm/release_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,16 @@ def dry_doit(package, distros, rosdistro, jobgraph, commit, jenkins_instance):
failed_jobs = []
for job_name, config in jobs:
if commit:
if create_jenkins_job(job_name, config, jenkins_instance):
successful_jobs.append(job_name)
else:
try:
ret_val = create_jenkins_job(job_name, config, jenkins_instance)
if ret_val:
successful_jobs.append(job_name)
else:
failed_jobs.append(job_name)
except urllib2.URLError as ex:
print ("Job creation failed with URLErro error %s" % ex)
failed_jobs.append(job_name)

unattempted_jobs = [job for (job, config) in jobs if job not in successful_jobs and job not in failed_jobs]

return (unattempted_jobs, successful_jobs, failed_jobs)
Expand Down

0 comments on commit 5798c57

Please sign in to comment.