]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
more debugging
authorHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 15:50:59 +0000 (17:50 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 15:50:59 +0000 (17:50 +0200)
db_add.py
debian_build.py

index cfa752156111d539b8f589c87a411fff786c0c6a..d5e32ae1bc2fb65063b799733800ac5510ccfdac 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -40,7 +40,9 @@ def harmonize_timeformat(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))
index ece00ad0b4dabf4620fb6872cbb56dd0fde5a75d..ad0d1cabf06646517adc2d4d0edde3ae8451d79d 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)