]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix typo
authorHolger Levsen <holger@layer-acht.org>
Wed, 26 Sep 2012 16:14:29 +0000 (18:14 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 26 Sep 2012 16:14:29 +0000 (18:14 +0200)
debian_build.py

index 0ac47858d9a9cd4e72e159bb7904b18e1a9b7b71..07ff817ee76b265a358a719865840b4827c29b23 100755 (executable)
@@ -133,10 +133,10 @@ def db_add_build(con, number, db_id):
     cur = con.cursor()
     cur.execute("SAVEPOINT a")
     try:
-        cur.execute("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id VALUES(%s, %s) RETURNING id" % (number, db_id))
+        cur.execute("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id) VALUES(%s, %s) RETURNING id" % (number, db_id))
     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))
+        #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 db_add_build_result(con, number, start, end):