]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
quickfix DEVINF-344
authorHolger Levsen <holger@layer-acht.org>
Thu, 24 Jan 2013 09:58:44 +0000 (10:58 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 24 Jan 2013 09:58:44 +0000 (10:58 +0100)
cidb.py

diff --git a/cidb.py b/cidb.py
index 126383af2791b6a90b59b66bc9cf307605eb16dc..5ddde11e102893f9cecdd24b61cc23a420d139de 100644 (file)
--- a/cidb.py
+++ b/cidb.py
@@ -6,23 +6,23 @@ import psycopg2.extras
 import logging
 
 # get current git branch
-p = subprocess.Popen(["git", "rev-parse", "--symbolic-full-name",
-    "--abbrev-ref", "HEAD"], stdout=subprocess.PIPE)
-p.wait()
-branch = p.stdout.read().rstrip()
+#p = subprocess.Popen(["git", "rev-parse", "--symbolic-full-name",
+#    "--abbrev-ref", "HEAD"], stdout=subprocess.PIPE)
+#p.wait()
+#branch = p.stdout.read().rstrip()
 
-if branch == "master":
-    DB_USER = "cidb"
-    DB_PASSWD = "cidb"
-    DB_NAME = "cidb"
-    DB_HOST = "jenkins"
-    DB_PORT = 5432
-else:
-    DB_USER = "cidb_dev"
-    DB_PASSWD = "cidb_dev"
-    DB_NAME = "cidb_dev"
-    DB_HOST = "jenkins"
-    DB_PORT = 5432
+#if branch == "master":
+DB_USER = "cidb"
+DB_PASSWD = "cidb"
+DB_NAME = "cidb"
+DB_HOST = "jenkins"
+DB_PORT = 5432
+#else:
+#    DB_USER = "cidb_dev"
+#    DB_PASSWD = "cidb_dev"
+#    DB_NAME = "cidb_dev"
+#    DB_HOST = "jenkins"
+#    DB_PORT = 5432
 
 logger = logging.getLogger()