Commit 65fc80a8 authored by QA-甘 盛聪's avatar QA-甘 盛聪

update

parent 1fc30555
...@@ -36,29 +36,29 @@ fi ...@@ -36,29 +36,29 @@ fi
# 增加文件差异对比 2017-01-15 田亚伟 # 增加文件差异对比 2017-01-15 田亚伟
echo "Step 1.1: checkout properties files: " #echo "Step 1.1: checkout properties files: "
config_path=`pwd` #config_path=`pwd`
expect -c " #expect -c "
spawn scp root@${host}:/home/quant_group/${module}/*.properties ./ #spawn scp root@${host}:/home/quant_group/${module}/*.properties ./
expect { #expect {
\"*assword\" { #\"*assword\" {
send \"!QAZ2wsx\n\" # send \"!QAZ2wsx\n\"
} # }
} #}
expect eof" #expect eof"
echo "------------------------config_fidd:begin------------------------------" #echo "------------------------config_fidd:begin------------------------------"
echo `node ${utils_path}/sh-utils/deploy/check_file_diff.js ${config_path}/application.properties /home/quant_group/jenkins/workspace/deploy_${module}/src/main/resources/config/test/` #echo `node ${utils_path}/sh-utils/deploy/check_file_diff.js ${config_path}/application.properties /home/quant_group/jenkins/workspace/deploy_${module}/src/main/resources/config/test/`
sed $(echo -e "s/\r//") application.properties > application_last.properties #sed $(echo -e "s/\r//") application.properties > application_last.properties
echo `pwd` #echo `pwd`
expect -c " #expect -c "
spawn scp ${config_path}/application_last.properties root@${host}:/home/quant_group/${module}/application.properties #spawn scp ${config_path}/application_last.properties root@${host}:/home/quant_group/${module}/application.properties
expect { #expect {
\"*assword\" { #\"*assword\" {
send \"!QAZ2wsx\n\" # send \"!QAZ2wsx\n\"
} # }
} #}
expect eof" #expect eof"
echo "-------------------------config_fidd:end-------------------------------" #echo "-------------------------config_fidd:end-------------------------------"
# 增加文件差异对比 结束2017-01-15 田亚伟 # 增加文件差异对比 结束2017-01-15 田亚伟
......
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