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():