Commit 4cc952f8 authored by QA—索 文涛's avatar QA—索 文涛

modified: qa_shell_script/app/XyqbAndroidBuild.sh

parent 051e2490
...@@ -6,6 +6,7 @@ StroeApk_path=${project_path}/apk ...@@ -6,6 +6,7 @@ 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 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
downloadApk_path=/home/quant_group/jenkins/download_apk
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
...@@ -80,6 +81,7 @@ function build_android() ...@@ -80,6 +81,7 @@ function build_android()
echo "当前路径 `pwd`" echo "当前路径 `pwd`"
#mv ${ApkFile} ${StroeApk_path}/${branch_name}_${product_flavors}.apk #mv ${ApkFile} ${StroeApk_path}/${branch_name}_${product_flavors}.apk
mv ${ApkFile} ${branch_name}_${product_flavors}_${build_time}.apk mv ${ApkFile} ${branch_name}_${product_flavors}_${build_time}.apk
cp -R ${branch_name}_${product_flavors}_${build_time}.apk ${downloadApk_path}/${branch_name}.apk
else else
echo "构建失败,请联系管理员查看". echo "构建失败,请联系管理员查看".
exit -1 exit -1
......
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