Commit 0b1e354c authored by QA-甘 盛聪's avatar QA-甘 盛聪

update

parent 90ae8f46
#!/bin/bash
init_shell_script=$1
ip_last=$2
project_name=$3
branch_name=$4
project_type=$5
public_ip=$6
ip_last=$1
project_name=$2
branch_name=$3
project_type=$4
public_ip=$5
set timeout 1200
ip=192.168.4.$ip_last
echo "参数为:
......@@ -42,16 +41,7 @@ if [ -n "$project_name" ] && [ -n "$branch_name" ]; then
expect \"]#\"
send \"cd /home/qa-deploy-utils/qa_shell_script\r\"
expect \"]#\"
send \"sh 2_get_code_by_name.sh $project_name $branch_name\r\"
set timeout -1
expect \"]#\"
send \"sh 3_link_config_file_by_name.sh $project_name $public_ip\r\"
set timeout -1
expect \"]#\"
send \"sh 4_build_by_name.sh $project_name $public_ip\r\"
set timeout -1
expect \"]#\"
send \"sh 5_restart_by_name.sh $project_name $public_ip\r\"
send \"sh deploy_project_by_name.sh $project_name $branch_name $public_ip\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
......
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