diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2017-08-30 17:31:35 -0600 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2017-08-30 17:31:35 -0600 |
| commit | 849c6a5cace9e21791aa4c6f60eb2da503a17a7e (patch) | |
| tree | f91321f944f17db91f8f2acd8f40e3bd2505ed40 | |
| parent | b1fbafa29492eb92109c886ec8dcb843b53eb76d (diff) | |
added ansible playbook repo autocommit to ci script
| -rwxr-xr-x | ci-script.sh | 12 |
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 |
