diff options
author | Amichai Hemli <amichai.hemli@intl.att.com> | 2019-11-04 16:31:34 +0200 |
---|---|---|
committer | Amichai Hemli <amichai.hemli@intl.att.com> | 2019-11-04 16:31:34 +0200 |
commit | 3f4f46580533a65d458b1af32c28b61c1ed7a3aa (patch) | |
tree | 4234aeeda514992e260f1bde6f4932ff38779fc3 /vid-automation/src/main/resources/ci/scripts/copyToStorage.sh | |
parent | 95dc3ee8072b633982d7bcd18b726350f2f6dc06 (diff) |
remove internal urls
Issue-ID: VID-646
Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com>
Change-Id: Ie76259a41909ae5667053a2ef2ab6f0094dc6b6c
Diffstat (limited to 'vid-automation/src/main/resources/ci/scripts/copyToStorage.sh')
-rw-r--r-- | vid-automation/src/main/resources/ci/scripts/copyToStorage.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/vid-automation/src/main/resources/ci/scripts/copyToStorage.sh b/vid-automation/src/main/resources/ci/scripts/copyToStorage.sh deleted file mode 100644 index 86fcadfef..000000000 --- a/vid-automation/src/main/resources/ci/scripts/copyToStorage.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -REPORT_NAME=$1 -VERSION=$2 -ENV=$3 - -if [ -z "$REPORT_NAME" ] - then - source ExtentReport/versions.info - now=$(date +'%Y-%m-%d_%H_%M') - REPORT_NAME="${now}" - VERSION="${osVersion}" - if [[ $env == *"DEV20"* ]] - then - ENV="Nightly" - else - ENV="" - fi - - fi - -/usr/bin/expect << EOF -spawn ssh admin@135.76.210.45 mkdir -p -m 775 /home/admin/reports/${ENV}/${VERSION}/UI/ - -expect { - -re ".*es.*o.*" { - exp_send "yes\r" - exp_continue - } - -re ".*sword.*" { - exp_send "Aa123456\r" - } -} - -expect eof - -spawn scp -pr ExtentReport admin@135.76.210.45:/home/admin/reports/${ENV}/${VERSION}/UI/${REPORT_NAME}/ - -expect { - -re ".*es.*o.*" { - exp_send "yes\r" - exp_continue - } - -re ".*sword.*" { - exp_send "Aa123456\r" - } -} - -expect eof -EOF |