summaryrefslogtreecommitdiff
path: root/source/bottlerock.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/bottlerock.py')
-rw-r--r--source/bottlerock.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py
index ece788b..3a34e4b 100644
--- a/source/bottlerock.py
+++ b/source/bottlerock.py
@@ -4,17 +4,13 @@
# using plain HTTP
from bottle import post, request, run, HTTPResponse
+import imp
+orch_config = imp.load_source('module.name', '../source/orch_config.py')
LOGFILE = '../orch.log'
DEFINITIONS = 'ssh://git@cu010-trove.codethink.com/baserock/baserock/definitions'
TEST_REPO = 'ssh://git@cu010-trove.codethink.com/cu010-trove/br6/ciat-tester'
-categories = [
- 'repo_update',
- 'definitions_update',
- 'build_complete',
- 'deploy_complete']
-
log_file = open(LOGFILE,'a')
def log(msg):
@@ -31,8 +27,7 @@ def sendchange(category,properties):
''' sendchange to buildbot with category and a dictionary of property names
and their values '''
- global categories
- assert category in categories
+ assert category in orch_config.categories
import subprocess
IP="127.0.0.1"
bb_port=9999