summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xci-script.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/ci-script.sh b/ci-script.sh
index 12fa772..5627f32 100755
--- a/ci-script.sh
+++ b/ci-script.sh
@@ -18,6 +18,7 @@ for i in $(sudo docker images | grep -v 'REPOSITORY' | awk '{print $3}'); do
done
# clean the build files
+rm -rf ${HOME}/openbook-v4-installer
sudo rm -rf /root/openbook_build /etc/openbook /var/lib/mysql /var/log/mysql /var/log/openbook
# configure salt
@@ -30,6 +31,15 @@ sudo /srv/bootstrap/run_salt.sh
sudo /root/openbook_build/ci/build.sh
# refresh openbook-v4-installer repo (ansible playbook)
-
+pushd ${HOME}
+git clone git@github.com:Talligent/openbook-v4-installer.git
+sudo rsync -aq --delete --exclude=.git /root/openbook_build/ansible/ openbook-v4-installer/
+sudo chown -R jenkins: openbook-v4-installer
+pushd openbook-v4-installer/
+git add -A
+git commit -a -m "autocommit $(date)"
+git push
+popd
+popd
exit 0