Commit ffc85779 authored by QA—索 文涛's avatar QA—索 文涛

modified: XyqbAndroidBuild.sh

parent 2ae27338
...@@ -4,11 +4,13 @@ source ~/.bash_profile ...@@ -4,11 +4,13 @@ source ~/.bash_profile
project_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild project_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild
StroeApk_path=${project_path}/apk StroeApk_path=${project_path}/apk
BuildGradle_file=${project_path}/app/build.gradle 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 BuildApk_path=${project_path}/build/archives
SourceMarkes_flavors=/home/qa-deploy-utils/qa_shell_script/app/markets.txt SourceMarkes_flavors=/home/qa-deploy-utils/qa_shell_script/app/markets.txt
branch_name=$1 branch_name=$1
product_flavors=$2 product_flavors=$2
build_time=$3 build_time=$3
test_server=$4
cd ${project_path} cd ${project_path}
function get_code() function get_code()
...@@ -39,6 +41,8 @@ function replace_config() ...@@ -39,6 +41,8 @@ function replace_config()
sed -i "s/apply plugin\: 'newlens'/\/\/apply plugin\: 'newlens'/g" ${BuildGradle_file} 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/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/\/\/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 else
echo "${BuildGradle_file} 文件不存在,请联系管理人员查看" echo "${BuildGradle_file} 文件不存在,请联系管理人员查看"
exit -1 exit -1
...@@ -100,5 +104,5 @@ replace_config ...@@ -100,5 +104,5 @@ replace_config
build_android build_android
upload_apk #upload_apk
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