diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-10-23 15:15:52 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-10-23 15:15:52 -0700 |
commit | 73202cf0facf5fdd0def24452c4781aec8b2711c (patch) | |
tree | 649a52365fa01e086863b21a7ebb440d3193d7b6 /test/ete/scripts/run-healthcheck.sh | |
parent | 838c34d02bcc34576dc660058a2beb08add8f334 (diff) |
Add script for health check job
Change-Id: I524853bd26fb104dd787a0e3ae6a8e9ae6acc5db
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/scripts/run-healthcheck.sh')
-rwxr-xr-x | test/ete/scripts/run-healthcheck.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ete/scripts/run-healthcheck.sh b/test/ete/scripts/run-healthcheck.sh new file mode 100755 index 000000000..a6bd489e8 --- /dev/null +++ b/test/ete/scripts/run-healthcheck.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ -z "$WORKSPACE" ]; then + export WORKSPACE=`git rev-parse --show-toplevel` +fi + +cd $WORKSPACE/test/ete/scripts + +ROBOT_IP=$(./get-floating-ip.sh onap-robot) +echo "ROBOT_IP=${ROBOT_IP}" + +ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key root@${ROBOT_IP} "OS_PASSWORD_INPUT=$OS_PASSWORD_INPUT bash -s" < ./remote/run-robot.sh |