]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix add_package_instances and logging
authorHolger Levsen <holger@layer-acht.org>
Fri, 28 Sep 2012 16:40:00 +0000 (18:40 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 28 Sep 2012 16:40:00 +0000 (18:40 +0200)
db_add.py
debian_build.py

index 70a4802089b2bdf7578d35cb658792940d79b8bc..0b44674be4fab148d62026500960ced2999fe866 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -11,10 +11,11 @@ import subprocess
 import time
 import fileinput
 import psycopg2
-import logging
 from common_code import *
 from cidb import *
 
+logger = logger_init()
+
 def db_add_job(con, name):
     cur = con.cursor()
     cur.execute("SAVEPOINT a")
index 6efa345b9d3fa3f2fab0815fa768125de9cd7f6b..79147f5560c1a104c6bea5d69272f3a3716f23ec 100755 (executable)
@@ -574,7 +574,7 @@ if __name__ == '__main__':
     package_instances=[]
     if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'):
         try:
-            package_instances = add_package_instance("profitbricks", BUILD_JOBNAME, BUILD_NUMBER, changes_file, version, BUILD_START, BUILD_END)
+            package_instances = add_package_instances("profitbricks", BUILD_JOBNAME, BUILD_NUMBER, changes_file, version, BUILD_START, BUILD_END)
         except Exception, error:
             cmd = ['figlet-figlet', '-t', 'CIDB problem:']
             subprocess.check_call(cmd)