diff --git a/script/tools/copy_embedded_img.sh b/script/tools/copy_embedded_img.sh index 2b90d1854ece201685d817b99d53511023d7a76c..da9c6da53ed78bb1697294d38a3bd5d5008b19e7 100644 --- a/script/tools/copy_embedded_img.sh +++ b/script/tools/copy_embedded_img.sh @@ -25,8 +25,8 @@ fi fi mkdir tmpdir expect <<-END1 - set timeout 900 - spawn scp -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=900 -r ${source_user}@${source_ip}:${source_dir}/* ./tmpdir/ + set timeout 2700 + spawn scp -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=2700 -r ${source_user}@${source_ip}:${source_dir}/* ./tmpdir/ expect { -re "\[P|p]assword:" { send "${source_pwd}\r" @@ -45,7 +45,7 @@ fi echo "[ERROR]: scp failed." exit 1 else - scp -i ${ssh_key} -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=900 -r tmpdir/* root@${dest_ip}:${latest_iso_dir}/embedded_img/ + scp -i ${ssh_key} -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=2700 -r tmpdir/* root@${dest_ip}:${latest_iso_dir}/embedded_img/ if [ $? -ne 0 ];then echo "[ERROR]: scp embedded_img to dailybuild failed." exit 1