Skip to content

Commit

Permalink
fix syntax from #345
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Oct 3, 2016
1 parent 8753253 commit 3265165
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ros_buildfarm/templates/misc/rosdistro_cache_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
@(SNIPPET(
'publisher_groovy-postbuild_reconfigure-updated-repositories',
entry_type='doc',
reconfigure_repo_names=reconfigure_doc_repo_names,
reconfigure_job_names=reconfigure_doc_job_names,
))@
@(SNIPPET(
'publisher_groovy-postbuild_reconfigure-updated-repositories',
entry_type='source',
reconfigure_repo_names=reconfigure_source_repo_names,
reconfigure_job_names=reconfigure_source_job_names,
))@
@(SNIPPET(
'publisher_mailer',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
'import java.util.regex.Pattern',
'import jenkins.model.Jenkins',
'',
'reconfigure_repo_names = []',
'reconfigure_job_names = []',
] +
['reconfigure_repo_names << "%s"' % name for name in reconfigure_repo_names] +
['reconfigure_job_names << "%s"' % name for name in reconfigure_job_names] +
[
'',
'pattern = Pattern.compile(".*- updated \'%s\' entry for repository \'(.+)\'")' % entry_type,
Expand Down
14 changes: 7 additions & 7 deletions scripts/misc/generate_rosdistro_cache_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@ def get_job_config(args, config):
job_name = '%s_%s' % (group_name, 'reconfigure-jobs')
reconfigure_job_names.append(job_name)

reconfigure_doc_repo_names = []
reconfigure_doc_job_names = []
build_files = get_doc_build_files(config, args.rosdistro_name)
for doc_build_name in sorted(build_files.keys()):
group_name = get_doc_view_name(
args.rosdistro_name, doc_build_name)
job_name = '%s_%s' % (group_name, 'reconfigure-jobs')
reconfigure_doc_repo_names.append(job_name)
reconfigure_doc_job_names.append(job_name)

reconfigure_source_repo_names = []
reconfigure_source_job_names = []
build_files = get_source_build_files(config, args.rosdistro_name)
for source_build_name in sorted(build_files.keys()):
group_name = get_devel_view_name(
args.rosdistro_name, doc_build_name)
args.rosdistro_name, source_build_name)
job_name = '%s_%s' % (group_name, 'reconfigure-jobs')
reconfigure_source_repo_names.append(job_name)
reconfigure_source_job_names.append(job_name)

job_data = copy.deepcopy(args.__dict__)
job_data.update({
Expand All @@ -97,8 +97,8 @@ def get_job_config(args, config):
'repository_args': repository_args,

'reconfigure_job_names': reconfigure_job_names,
'reconfigure_doc_repo_names': reconfigure_doc_repo_names,
'reconfigure_source_repo_names': reconfigure_source_repo_names,
'reconfigure_doc_job_names': reconfigure_doc_job_names,
'reconfigure_source_job_names': reconfigure_source_job_names,

'notification_emails':
config.distributions[args.rosdistro_name]['notification_emails'],
Expand Down

0 comments on commit 3265165

Please sign in to comment.