Commit 5a136e32 authored by QA-甘 盛聪's avatar QA-甘 盛聪

a

parent a6fe258c
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
project_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild project_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild
target_file=${project_path}/app/build.gradle target_file=${project_path}/app/build.gradle
store_path=/home/ganshc/ store_path=/home/ganshc/
source_file=${store_path}/build.gradle source_gradlefile=${store_path}/build.gradle
source_flavors=${store_path}/markets.txt
buildapk_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives buildapk_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives
branch_name=$1 branch_name=$1
product_flavors=$2 product_flavors=$2
...@@ -29,7 +30,11 @@ fi ...@@ -29,7 +30,11 @@ fi
echo "copy file to app" echo "copy file to app"
cp -r ${source_file} ${target_file} cp -r ${source_gradlefile} ${target_file}
if [[ -z ${product_flavors} ]]; then
echo "${product_flavors}" > ${project_path}/markets.txt
fi
echo "gradle build start" echo "gradle build start"
...@@ -37,9 +42,7 @@ gradle clean resguard --stacktrace --debug ...@@ -37,9 +42,7 @@ gradle clean resguard --stacktrace --debug
echo "rename apk" echo "rename apk"
cd ${buildapk_path} apkfile=`find /home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives -name "*${product_flavors}.apk"`
apkfile=`find ./ -name "*${product_flavors}.apk"`
cp ${apkfile} /home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/${branch_name}_${product_flavors}.apk cp ${apkfile} /home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/${branch_name}_${product_flavors}.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