raise LocalError('GBS fullbuild failed')
- def copy_build_results_to_dl_server(self):
+ def copy_build_results_to_dl_server(self,repository):
print '----start copy_build_results_to_dl_server-----------------------------------'
path_live_repo_base = os.getenv('PATH_LIVE_REPO_BASE').rstrip('/')
profile_list=os.listdir(self.build_root+'/local/repos/')
for profile in profile_list:
build_result_repo_path=self.build_root+'/local/repos/'+profile+'/'
- repository=profile.split('_')[-1]
live_repo_root=obs_liverepo+'/'+repository
if not os.path.exists(live_repo_root):
os.mkdir(live_repo_root)
gbsbuild_sub._do_repo_arch_gbs_fullbuild(repository,architecture)
(gbs_build_status,gbs_build_status_reason) = gbsbuild_sub._get_gbs_build_result_status(repository,architecture)
- live_out_dir=gbsbuild_sub.copy_build_results_to_dl_server()
+ live_out_dir=gbsbuild_sub.copy_build_results_to_dl_server(repository)
os.chdir(original_dir)