Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
f27f841f
Commit
f27f841f
authored
Mar 22, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
7040921a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
7 deletions
+37
-7
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+11
-7
markets.txt
qa_shell_script/app/markets.txt
+26
-0
No files found.
qa_shell_script/app/XyqbAndroidBuild.sh
100644 → 100755
View file @
f27f841f
...
@@ -4,6 +4,7 @@ project_path=/home/quant_group/jenkins/workspace/XyqbAndroidBuild
...
@@ -4,6 +4,7 @@ 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
BuildApk_path
=
${
project_path
}
/build/archives
BuildApk_path
=
${
project_path
}
/build/archives
SourceMarkes_flavors
=
/home/qa-deploy-utils/qa_shell_script/app/markets.txt
branch_name
=
$1
branch_name
=
$1
product_flavors
=
$2
product_flavors
=
$2
...
@@ -46,8 +47,10 @@ function build_android()
...
@@ -46,8 +47,10 @@ function build_android()
if
[[
!
-z
${
SourceMarkes_flavors
}
]]
;
then
if
[[
!
-z
${
SourceMarkes_flavors
}
]]
;
then
echo
"
${
product_flavors
}
"
>
${
project_path
}
/markets.txt
echo
"
${
product_flavors
}
"
>
${
project_path
}
/markets.txt
else
else
cp
-r
${
SourceMarkes_flavors
}
${
project_path
}
echo
"构建所有渠道包"
echo
"构建所有渠道包"
fi
fi
rm
-rf
${
BuildApk_path
}
/
*
rm
-rf
${
project_path
}
/apk/
*
rm
-rf
${
project_path
}
/apk/
*
cd
${
project_path
}
cd
${
project_path
}
pwd
pwd
...
@@ -57,14 +60,15 @@ function build_android()
...
@@ -57,14 +60,15 @@ function build_android()
echo
"成功构建APK包"
.
echo
"成功构建APK包"
.
echo
"开始重命名对应的渠道包"
echo
"开始重命名对应的渠道包"
cd
${
BuildApk_path
}
cd
${
BuildApk_path
}
if
[[
!
-z
${
product_flavors
}
]]
;
then
#if [[ ! -z ${product_flavors} ]]; then
ApkFile
=
"
`
find
${
BuildApk_path
}
-name
"*
${
product_flavors
}
.apk"
`
"
# ApkFile="`find ${BuildApk_path} -name "*${product_flavors}.apk"`"
else
#else
ApkFile
=
"
`
find
${
BuildApk_path
}
-name
"*ceshi.apk"
`
"
# ApkFile="`find ${BuildApk_path} -name "*ceshi.apk"`"
fi
#fi
echo
"apk名称是:
${
apkfile
}
"
ApkFile
=
"
`
find
${
BuildApk_path
}
-name
"*
${
product_flavors
}
.apk"
`
"
echo
"apk名称是:
${
ApkFile
}
"
echo
"当前路径
`
pwd
`
"
echo
"当前路径
`
pwd
`
"
mv
${
ApkFile
}
${
StroeApk_path
}
/
${
branch_name
}
_
${
product_flavors
}
.apk
cp
-r
${
ApkFile
}
${
StroeApk_path
}
/
${
branch_name
}
_
${
product_flavors
}
.apk
else
else
echo
"构建失败,请联系管理员查看"
.
echo
"构建失败,请联系管理员查看"
.
exit
-1
exit
-1
...
...
qa_shell_script/app/markets.txt
0 → 100755
View file @
f27f841f
sanliulingkaifangpingtai
yingyongbaocpd
quantgroup
ceshi
oppo
huawei
anfeng
anzhi
xiaomiyingyongshangcheng
yingyonghui
sougoushoujizhushou
mumayi
jifeng
baidushoufa
wangyi
tengxunkaifangpingtai
meizuyingyongzhongxin
oppo
vivo
leshi
wandoujia
ppzhushou
jinritoutiao
baidufengchao
oppoxinxiliu
guangdiantongcpd
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment