# Split request into smaller part
split_step = 100
for r in xrange(0, len(requests_item[project_to_create]), split_step):
+ if target.get('sr-sync') != 'Yes': continue
trigger_next('PRE_RELEASE_REQUEST_%s_%d' % (target['target'], (r/split_step)+1), \
{'requests': [{project_to_create: requests_item[project_to_create][r:(r+split_step)]}], \
'obs_target_prj': project, \
'snapshot': snapshot,
'index_sequence': '%d-%d' % ((r/split_step)+1, len(requests_item[project_to_create]))})
- if target.get('sr-sync') != 'Yes': continue
for file_name in os.listdir(os.getenv('WORKSPACE')):
full_path = os.path.join(os.getenv('WORKSPACE'), file_name)
dest_path = os.path.join(os.getenv('WORKSPACE'), 'SR_SYNC_' + file_name)