ref_binary[line.split('"')[1]] = line.split('"')[3]
#Add default profile supported by gbs
- for profile in gbs_meta_default_profile.split(' '):
- ref_binary[profile]=profile+':ref:latest'
+ if gbs_meta_default_profile:
+ for profile in gbs_meta_default_profile.split(' '):
+ ref_binary[profile]=profile+':ref:latest'
print 'Each reference snapshot numbers are like below'
print ref_binary
_update_ref_bin_index(ref_binary,build_profile)
- if SUPPORT_PROFILES.find(build_profile) == -1:
+ if not SUPPORT_PROFILES or SUPPORT_PROFILES.find(build_profile) == -1:
print "skip fullbuild...\nGBS reference fullbuild is triggered only for %s" %SUPPORT_PROFILES
os.chdir(original_dir)
gbsmeta_data = {"event": event,
- "triggered_from": 'gbs_ref_fullbuild',
}
trigger_next("update-gbs-meta",gbsmeta_data)
return 0