diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-11 16:24:36 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-11 16:26:08 +0100 |
commit | beb04bb988af41dd449e42edabb6938bf6a007af (patch) | |
tree | da3bd1c0d852414ce15c0011918879754cfe5fd8 | |
parent | 7c604b8770815814ced1d588a681a8b101cde3d3 (diff) | |
download | orchestration-beb04bb988af41dd449e42edabb6938bf6a007af.tar.gz |
Add deploy complete method
-rw-r--r-- | source/bottlerock.py | 5 | ||||
-rw-r--r-- | source/deploy_complete.sh | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py index 44701d1..147368e 100644 --- a/source/bottlerock.py +++ b/source/bottlerock.py @@ -59,10 +59,7 @@ def build_complete(): @post('/deploy_complete') def deploy_complete(): - pass - -if __name__ == '__main__': - run(host='0.0.0.0', port=8080, debug=True) + return call_trigger('deploy_complete') if __name__ == '__main__': run(host='0.0.0.0', port=8080, debug=True) diff --git a/source/deploy_complete.sh b/source/deploy_complete.sh new file mode 100644 index 0000000..036778b --- /dev/null +++ b/source/deploy_complete.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# this will run once ybd has finished a build +set -e + +category=postdeploy + +IP=127.0.0.1 +port=9999 +user=orchestration +passwd=orchestration + +../orchenv-master/bin/buildbot --verbose sendchange -m "$IP":"$port" -a "$user":"$passwd" -W scriptbot -C "$category" |