From: Holger Levsen Date: Fri, 28 Sep 2012 16:40:00 +0000 (+0200) Subject: fix add_package_instances and logging X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=159f63ce9cac1a7e154a091d81bf81b4e123fb1b;p=profitbricks%2Fjenkins-build-scripts.git fix add_package_instances and logging --- diff --git a/db_add.py b/db_add.py index 70a4802..0b44674 100755 --- 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") diff --git a/debian_build.py b/debian_build.py index 6efa345..79147f5 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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)