]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
we dropped that table yesterday
authorHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 12:37:21 +0000 (14:37 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 12:37:21 +0000 (14:37 +0200)
db_add.py

index 0a3033c094696aac2f4ca956d134d6b82019d1fb..779cb5de5af9f4c7dad3ef55e3c7e67876904491 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -138,17 +138,6 @@ def add_package_version(origin, package, version):
     con.commit()
     return db_package_instance_id
 
-def db_add_requested_liveboot_build (con, request_id, build_id):
-    cur = con.cursor()
-    cur.execute("SAVEPOINT a")
-    try:
-        cur.execute("INSERT INTO liveboot_request_jenkins_build(liveboot_request_id, jenkins_build_id) VALUES(%s, %s) RETURNING id" % (request_id, build_id))
-        con.commit()
-    except psycopg2.DatabaseError as e:
-        cur.execute("ROLLBACK TO a")  # have to rollback after failed command
-        #logger.debug("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id) VALUES(%s, %s) RETURNING id" % (number, db_id))
-    return cur.fetchone()[0]
-
 def get_package_instance(origin, package, version):
     con = db_connect()
     cur = con.cursor()
@@ -184,7 +173,6 @@ 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_add_requested_liveboot_build(con, request_id, db_build_id)
     con.commit()
     logger.info("CIDB init for liveboot OK.")
     return