]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
remove debugging code again
authorHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 16:22:54 +0000 (18:22 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 16:22:54 +0000 (18:22 +0200)
db_add.py
debian_build.py

index 7e7738cb1abff2537b8d4fe316d7c96d0a080042..a008ad24ebe8dc6979766ef330994a7d8cc9031f 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -30,24 +30,18 @@ def db_add_job(con, name):
     return cur.fetchone()[0]
 
 def harmonize_timeformat(time):
-    logger.debug('1 time = %s' % time)
     if time != 'NULL':
         try:
             if time.isdigit():
-                logger.debug('2 time = %s' % time)
                 time = "to_timestamp('%s')" % time
-                logger.debug('3 time = %s' % time)
         except:
             time = "'%s'" % time
-            logger.debug('4 time = %s' % time)
     return time
 
 def db_add_build(con, db_id, number, start, end, status):
     cur = con.cursor()
     cur.execute("SAVEPOINT a")
-    logger.debug('start = %s' % start)
     start = harmonize_timeformat(start)
-    logger.debug('harmonized_start = %s' % start)
     end = harmonize_timeformat(end)
     try:
         cur.execute("INSERT INTO jenkins_build(jenkins_job_id, jenkins_build_number, build_start, build_end, status) VALUES(%s, %s, %s, %s, '%s') RETURNING id" % (db_id, number, start, end, status))
@@ -60,7 +54,6 @@ def db_add_build(con, db_id, number, start, end, status):
 def db_update_build(con, db_id, end, status):
     cur = con.cursor()
     cur.execute("SAVEPOINT a")
-    logger.debug('end = %s' % end)
     end = harmonize_timeformat(end)
     logger.debug('harmonized_end = %s' % end)
     try:
index ad0d1cabf06646517adc2d4d0edde3ae8451d79d..ece00ad0b4dabf4620fb6872cbb56dd0fde5a75d 100755 (executable)
@@ -578,7 +578,7 @@ if __name__ == '__main__':
             cmd = ['figlet-figlet', '-t', 'CIDB problem:']
             subprocess.check_call(cmd)
             logger.error("package instance not added to DB")
-            #exit_error()
+            exit_error()
         if len(package_instances) > 0:
             try:
                 add_liveboot_request(package_instances)