summaryrefslogtreecommitdiff
path: root/triggers/deploy_trigger.sh
diff options
context:
space:
mode:
Diffstat (limited to 'triggers/deploy_trigger.sh')
-rw-r--r--triggers/deploy_trigger.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/triggers/deploy_trigger.sh b/triggers/deploy_trigger.sh
index e9739b1..dab3364 100644
--- a/triggers/deploy_trigger.sh
+++ b/triggers/deploy_trigger.sh
@@ -11,11 +11,19 @@ git checkout $BUILDSLAVE_SCRIPTS_SHA
cd definitions
git checkout $DEFINITIONS_SHA
cd ..
-if [ -d ybd ]; then
- rm -rf ybd
+if [ -d ybd-env ]; then
+ rm -rf ybd-env
fi
+virtualenv --no-site-packages ybd-env
+cd ybd-env
+./bin/pip install pyyaml sandboxlib jsonschema requests
git clone -n https://github.com/devcurmudgeon/ybd.git
git --git-dir=./ybd/.git --work-tree=./ybd checkout 15.39
+cp ../deploy_logic.py .
+cp ../deploy_a_system.sh .
cp ybd.conf ybd
cp ybd.conf ybd/config
-python deploy_logic.py $SYSTEM $ARTEFACT $TESING_SHA
+if [ -d ybd ]; then
+ rm -rf ybd
+fi
+./bin/python deploy_logic.py $SYSTEM $ARTEFACT $TESING_SHA