Commit ae17e82c authored by qa_quantgroup's avatar qa_quantgroup
parents 59482717 9562d98b
......@@ -4,11 +4,13 @@ source ~/.bash_profile
project_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild
StroeApk_path=${project_path}/apk
BuildGradle_file=${project_path}/app/build.gradle
Constant_file=${project_path}/app/src/main/java/com/financial/quantgroup/constants/Constant.java
BuildApk_path=${project_path}/build/archives
SourceMarkes_flavors=/home/qa-deploy-utils/qa_shell_script/app/markets.txt
branch_name=$1
product_flavors=$2
build_time=$3
test_server=$4
cd ${project_path}
function get_code()
......@@ -39,6 +41,8 @@ function replace_config()
sed -i "s/apply plugin\: 'newlens'/\/\/apply plugin\: 'newlens'/g" ${BuildGradle_file}
sed -i "s/artifact = 'com.tencent.mm:SevenZip:1.1.13'/\/\/artifact = 'com.tencent.mm:SevenZip:1.1.13'/g" ${BuildGradle_file}
#sed -i "s/\/\/path = \"\/usr\/local\/bin\/7za\"/path = \"\/usr\/local\/p7zip_9.20.1\/bin\/7za\"/g" ${BuildGradle_file}
sed -i "s#https://sappbackend.xyqb.com/#http://${test_server}:7018/#g" ${Constant_file}
else
echo "${BuildGradle_file} 文件不存在,请联系管理人员查看"
exit -1
......@@ -94,7 +98,7 @@ function upload_apk()
fi
}
get_code
#get_code
replace_config
......
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