summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2018-03-23 09:55:56 +0800
committerQiLiang <liangqi1@huawei.com>2018-03-23 09:55:56 +0800
commit7866147838e83a479c1c158eebfd08ff35d17f3c (patch)
treeca17c3ab57e193f2fc42221f315224378c5db81e /ci
parent61c6ac4fe000f96826bc5ce6755cf6bc360e3aef (diff)
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 <liangqi1@huawei.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy.sh7
1 files changed, 4 insertions, 3 deletions
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!"