From: Fabian Holler Date: Wed, 30 Jan 2013 11:58:12 +0000 (+0100) Subject: fixup! use cidb_dev database for liveboot_development jobs X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=ca97f1ece1e746fc7332f18c106a9ea099f6a076;p=profitbricks%2Fjenkins-build-scripts.git fixup! use cidb_dev database for liveboot_development jobs --- diff --git a/cidb.py b/cidb.py index 28aaf7a..e8dc9dd 100644 --- a/cidb.py +++ b/cidb.py @@ -8,20 +8,18 @@ import subprocess logger = logging.getLogger() -if os.environ['GIT_BRANCH'] == "master": - DB_USER = "cidb" - DB_PASSWD = "cidb" - DB_NAME = "cidb" - DB_HOST = "jenkins" - DB_PORT = 5432 -else: +if os.environ['JOB_NAME'] == "liveboot_development": DB_USER = "cidb_dev" DB_PASSWD = "cidb_dev" DB_NAME = "cidb_dev" DB_HOST = "jenkins" DB_PORT = 5432 - -print(DB_NAME) +else: + DB_USER = "cidb" + DB_PASSWD = "cidb" + DB_NAME = "cidb" + DB_HOST = "jenkins" + DB_PORT = 5432 def db_connect():