summaryrefslogtreecommitdiff
path: root/firehose_call.py
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-09 16:59:10 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-09 16:59:10 +0100
commit415cfd619e3e182bdf8bffb09a65f2ed0a2e376f (patch)
tree66271c6c8cdf0d8621cda87bda7728d10cdc6e45 /firehose_call.py
parent2ea6f820c103331a401aa6ed1710ac32333b36dc (diff)
downloadbuildslave-scripts-415cfd619e3e182bdf8bffb09a65f2ed0a2e376f.tar.gz
Add logic to call builder when definitions updated
Diffstat (limited to 'firehose_call.py')
-rw-r--r--firehose_call.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/firehose_call.py b/firehose_call.py
index bbd9111..d12a17a 100644
--- a/firehose_call.py
+++ b/firehose_call.py
@@ -5,6 +5,7 @@
FIREHOSE_DIR = '/home/williamholland/src/firehose'
LOGFILE = '/home/williamholland/orchestration/trigger_log'
+DEFINITIONS = 'ssh://git@cu010-trove.codethink.com/baserock/baserock/definitions'
from firehose_mappings import mapping
@@ -27,6 +28,11 @@ def firehose_cmd(config,loglevel='debug',log='/dev/stdout'):
] + config
return cmd
+def trigger_builder():
+ #TODO
+ log('definitions has been updated! handing over to the builder')
+ pass
+
if __name__ == '__main__':
import sys, subprocess, os
@@ -37,6 +43,9 @@ if __name__ == '__main__':
print "firehose_map.py requires a repo argument"
exit(1)
+ if repo == DEFINITIONS:
+ trigger_builder()
+
try:
configs = mapping[repo]
except: