cur.execute("ROLLBACK TO a") # have to rollback after failed command
logger.debug("INSERT INTO jenkins_build(jenkins_job_id,"
" git_revision_id, jenkins_build_number, build_start,"
- " build_end, status) VALUES(%s, %s, %s, %s, '%s')"
+ " build_end, status) VALUES(%s, %s, %s, %s, %s, '%s')"
" RETURNING id" % (db_id, git_rev_id, number, start, end,
status))
def add_liveboot_build(job_name, build_number, request_id, start):
con = db_connect()
db_job_id = db_add_job(con, job_name)
- db_build_id = db_add_build(con, db_job_id, build_number, start, 'NULL', 'in progress')
+ db_build_id = db_add_build(con, db_job_id, build_number, 'NULL', start,
+ 'NULL', 'in progress')
con.commit()
logger.info("CIDB init for liveboot OK.")
return