From 7866147838e83a479c1c158eebfd08ff35d17f3c Mon Sep 17 00:00:00 2001 From: QiLiang Date: Fri, 23 Mar 2018 09:55:56 +0800 Subject: Fix ci deploy job error Fix issue: https://build.opnfv.org/ci/view/clover/job/clover-daily-deploy-master/4/consoleFull + ssh -i /home/jenkins/opnfv/slave_root/workspace/clover-daily-deploy-master/work/container4nfv/src/vagrant/kubeadm_istio/.vagrant/machines/master/libvirt/private_key vagrant@192.168.121.117 rm -rf clover Host key verification failed. Change-Id: I73ea912ca6eb7ef823b1694b9fb090d809f158ee Signed-off-by: QiLiang --- ci/deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ci') diff --git a/ci/deploy.sh b/ci/deploy.sh index d5d46b4..762dc0a 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -12,6 +12,7 @@ set -ex CLOVER_BASE_DIR=`cd ${BASH_SOURCE[0]%/*}/..;pwd` CLOVER_WORK_DIR=$CLOVER_BASE_DIR/work MASTER_NODE_NAME='master' +SSH_OPTIONS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" mkdir -p $CLOVER_WORK_DIR cd $CLOVER_WORK_DIR @@ -33,10 +34,10 @@ MASTER_NODE_USER=$(vagrant ssh-config $MASTER_NODE_NAME | awk '/User /{print $2} MASTER_NODE_KEY=$(vagrant ssh-config $MASTER_NODE_NAME | awk '/IdentityFile /{print $2}') # Push clover source code to kube-master node -ssh -i $MASTER_NODE_KEY ${MASTER_NODE_USER}@${MASTER_NODE_HOST} rm -rf clover -scp -i $MASTER_NODE_KEY -r $CLOVER_BASE_DIR ${MASTER_NODE_USER}@${MASTER_NODE_HOST}:clover +ssh $SSH_OPTIONS -i $MASTER_NODE_KEY ${MASTER_NODE_USER}@${MASTER_NODE_HOST} rm -rf clover +scp $SSH_OPTIONS -i $MASTER_NODE_KEY -r $CLOVER_BASE_DIR ${MASTER_NODE_USER}@${MASTER_NODE_HOST}:clover # Run test -ssh -i $MASTER_NODE_KEY ${MASTER_NODE_USER}@${MASTER_NODE_HOST} ./clover/ci/test.sh +ssh $SSH_OPTIONS -i $MASTER_NODE_KEY ${MASTER_NODE_USER}@${MASTER_NODE_HOST} ./clover/ci/test.sh echo "Clover deploy complete!" -- cgit 1.2.3-korg