Code Review
/
icn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove unused metal3-vm code
[icn.git]
/
ci
/
jjb
/
shell
/
bluval-postbuild.sh
diff --git
a/ci/jjb/shell/bluval-postbuild.sh
b/ci/jjb/shell/bluval-postbuild.sh
index
622ad7a
..
3647687
100644
(file)
--- a/
ci/jjb/shell/bluval-postbuild.sh
+++ b/
ci/jjb/shell/bluval-postbuild.sh
@@
-5,7
+5,8
@@
set -o pipefail
echo "[ICN] Uninstalling EMCO k8s"
cd k8s/kud/hosting_providers/vagrant
echo "[ICN] Uninstalling EMCO k8s"
cd k8s/kud/hosting_providers/vagrant
-ansible-playbook -i inventory/hosts.ini /opt/kubespray-2.12.6/reset.yml --become --become-user=root -e reset_confirmation=yes
+version=$(grep "kubespray_version" ../../deployment_infra/playbooks/kud-vars.yml | awk -F ': ' '{print $2}')
+ansible-playbook -i inventory/hosts.ini /opt/kubespray-${version}/reset.yml --become --become-user=root -e reset_confirmation=yes
echo "[ICN] Purging Docker fully"
cat << EOF | tee purge-docker.yml
echo "[ICN] Purging Docker fully"
cat << EOF | tee purge-docker.yml