X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fci_management%2Fcleanup_control.sh;fp=scripts%2Fci_management%2Fcleanup_control.sh;h=574552b84dd55a307a4e4a848bebc3731217aa06;hb=b9b83e766994a4802b9011ffcba092aa5681c527;hp=0000000000000000000000000000000000000000;hpb=5e151378cceea22cb58efd782819d5e91cd75dff;p=eliot.git diff --git a/scripts/ci_management/cleanup_control.sh b/scripts/ci_management/cleanup_control.sh new file mode 100755 index 0000000..574552b --- /dev/null +++ b/scripts/ci_management/cleanup_control.sh @@ -0,0 +1,36 @@ +#!/bin/bash -ex +############################################################################## +# Copyright (c) 2019 Huawei Tech and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +# constants + +TESTYAML="testk8s-nginx.yaml" + +# start + +source ../src/config_kubeedge +cd +kubectl delete -f $TESTYAML + +sshpass -p ${EDGENODEPASSWORD} \ +scp ${PATH_OF_ELIOTFOLDER}/scripts/ci_management/cleanup_edge.sh \ +${EDGENODEUSR}@${EDGENODEIP}:$HOME_EDGENODE + +sshpass -p ${EDGENODEPASSWORD} ssh ${EDGENODEUSR}@${EDGENODEIP} \ +source cleanup_edge.sh + +cd $PATH_OF_ELIOTFOLDER/scripts/ci_management +source cleanup_master.sh + +sshpass -p ${EDGENODEPASSWORD} \ +scp ${PATH_OF_ELIOTFOLDER}/scripts/ci_management/cleanup_edge_final.sh \ +${EDGENODEUSR}@${EDGENODEIP}:$HOME_EDGENODE + +sshpass -p ${EDGENODEPASSWORD} ssh ${EDGENODEUSR}@${EDGENODEIP} \ +source cleanup_edge_final.sh