From 415cfd619e3e182bdf8bffb09a65f2ed0a2e376f Mon Sep 17 00:00:00 2001 From: Will Holland Date: Wed, 9 Sep 2015 16:59:10 +0100 Subject: Add logic to call builder when definitions updated --- firehose_call.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'firehose_call.py') 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: -- cgit v1.2.1