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")
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)