set -o nounset
cd $WORKSPACE
-echo "Info: Promoting ONAP"
+echo "Info: Promoting ONAP. Please note that this may take about 3 hours to complete. Do not interrupt!"
echo "-------------------------------------------------------------------------"
-echo "Warning: Not implemented!"
+cd /tmp && /bin/rm -rf $WORKSPACE
+git clone -q https://gerrit.nordix.org/infra/swconfig.git $WORKSPACE
+cd $WORKSPACE/scenarios/onap-nofeature-noha/kubespray/playbooks
+# avoid PS1: unbound variable issue
+set +u
+source /opt/engine/.venv/bin/activate
+set -u
+ansible-playbook -i /tmp/inventory.ini promote.yml
echo "-------------------------------------------------------------------------"
+echo "Info: Promotion done!"
# vim: set ts=2 sw=2 expandtab: