Commit 4b5aa667 authored by qa_quantgroup's avatar qa_quantgroup

a

parent ecd268b8
...@@ -46,41 +46,3 @@ exstr="${exstr} ...@@ -46,41 +46,3 @@ exstr="${exstr}
send \\\"exit\r\\\" send \\\"exit\r\\\"
expect eof;" expect eof;"
expect -c "$exstr" expect -c "$exstr"
return
echo "step 2 重新部署环境"
function reBuildProject(){
expect -c "
set timeout 10
spawn ssh root@$2
expect \"]#\"
send \"cd /home/qa-deploy-utils/qa_shell_script/\r\"
expect \"]#\"
send \"sh 3_link_config_file_by_name.sh $1\r\"
set timeout -1
expect \"]#\"
send \"sh 4_build_by_name.sh $1\r\"
set timeout -1
expect \"]#\"
send \"sh 5_restart_by_name.sh $1\r\"
expect \"]#\"
send \"exit\r\"
expect eof;"
}
reBuildProject "xyqb-user-ui" "$env_ip"
reBuildProject "new-xyqb-user-ui" "$evn_ip"
reBuildProject "xyqb-user2" "$env_ip"
reBuildProject "xyqb" "$env_ip"
echo "部署结束,如果之后修改代码,部署project后,请重新执行该部署脚本,否则有可能出现测试环境配置文件被回退的可能。"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment