buildmonitor_db.do_query(query, query_data)
# get build_snapshot_id for deleting build_snapshot_package & build_image
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (pre_build_project_id,)
build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# % (__file__, pre_info_project_id, pre_build_project_id)
### to check duplicate build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (pre_build_project_id,)
pre_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
### for build_snapshot
# % (__file__, pre_info_project_id, pre_build_project_id)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (pre_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
#print '[%s] curr_build_snapshot_id(%s)\n' % (__file__, curr_build_snapshot_id)
### build_image : update fail status for [pre] image creation
# get pre_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (curr_build_project_id,)
pre_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# % (__file__, bm_repository, bm_device_name, bm_status, bm_url)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE snapshot_name = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE snapshot_name = %s"
query_data = (build_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
#print '[%s] curr_build_snapshot_id(%s)\n' % (__file__, curr_build_snapshot_id)
curr_build_project_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (curr_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get multi_build_image_status
curr_build_project_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (curr_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get multi_build_image_status
build_project_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
buildmonitor_db.do_query(query, query_data)
# get build_snapshot_id for deleting build_snapshot_package & build_image
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (trbs_build_project_id,)
build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# % (__file__, pre_info_project_id, trbs_build_project_id)
### to check duplicate build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (trbs_build_project_id,)
trbs_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# % (__file__, trbs_info_project_id, trbs_build_project_id)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (trbs_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
#print '[%s] curr_build_snapshot_id(%s)\n' % (__file__, curr_build_snapshot_id)
### build_image : update fail status for [trbs] image creation
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (curr_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
curr_build_project_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id desc LIMIT 1"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
query_data = (curr_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get multi_build_image_status