print extra_params.keys()
print "====LOG:TRIGGER_NEXT:======================end=="
-def trigger_info(_trigger_info):
+def trigger_info(_trigger_info, show=True):
"Return a trigger info dict"""
print "====LOG:TRIGGER_INFO:==========================="
content_dict = unicode_to_str(json.loads(base64.b64decode(_trigger_info)))
- print json.dumps(content_dict, indent=4)
+ if show == True:
+ print json.dumps(content_dict, indent=4)
print "====LOG:TRIGGER_INFO:======================end=="
return content_dict
count = 0
for repo in trigger_data.keys():
for index, data in enumerate(trigger_data[repo]):
- trigger_next('image_trigger_%s_%s' % (repo, index), data)
+ trigger_next('image_trigger_%s_%s' % (repo, index), data, show=False)
count += 1
# Request number of imager nodes
if os.getenv("ONDEMAND_SLAVE_CONFIGURATION_ENABLED", "0") == "1":
"bm_pkg_mdate_lst" : bm_pkg_mdate_lst,
"bm_pkg_size_lst" : bm_pkg_size_lst,
}
- trigger_next("BUILD-MONITOR-3-%s-%s-%s-%s" % (bm_stage, bm_repo, bm_arch, bm_trg_count), bm_data)
+ trigger_next("BUILD-MONITOR-3-%s-%s-%s-%s" % (bm_stage, bm_repo, bm_arch, bm_trg_count), bm_data, show=False)
# clear the data
bm_pkg_count = 0
}
#print '[%s] for rest pkgs!! BM_PKG_LIMIT(%s), bm_pkg_count(%s), bm_trg_count(%s)\n' \
# % (__file__, BM_PKG_LIMIT, bm_pkg_count, bm_trg_count)
- trigger_next("BUILD-MONITOR-3-%s-%s-%s-trg_%s" % (bm_stage, bm_repo, bm_arch, bm_trg_count), bm_data)
+ trigger_next("BUILD-MONITOR-3-%s-%s-%s-trg_%s" % (bm_stage, bm_repo, bm_arch, bm_trg_count), bm_data, show=False)
# Generate image info to builddata/ dir
repomaker.gen_image_info()