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
b92d2799
Commit
b92d2799
authored
Mar 14, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
4b70d36e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+17
-16
No files found.
qa_shell_script/app/XyqbAndroidBuild.sh
View file @
b92d2799
...
@@ -35,26 +35,27 @@ function build_android()
...
@@ -35,26 +35,27 @@ function build_android()
{
{
echo
"拷贝可使用的gradle文件"
echo
"拷贝可使用的gradle文件"
cp
-r
${
source_gradlefile
}
${
target_file
}
cp
-r
${
source_gradlefile
}
${
target_file
}
if
[[
-z
${
product_flavors
}
]]
;
then
if
[[
!
-z
${
product_flavors
}
]]
;
then
echo
"
${
product_flavors
}
"
>
${
project_path
}
/markets.txt
echo
"
${
product_flavors
}
"
>
${
project_path
}
/markets.txt
fi
fi
rm
-rf
${
project_path
}
/apk/
rm
-rf
${
project_path
}
/apk/
*
echo
"开始使用gradle进行编译该版本的代码"
echo
"开始使用gradle进行编译该版本的代码"
gradle clean resguard
--stacktrace
--debug
gradle clean resguard
--stacktrace
--debug
if
[
$?
=
0
]
;
then
if
[
$?
=
0
]
;
then
echo
"gradle build is ok"
.
echo
"gradle build is ok"
.
echo
"开始重命名对应的渠道包"
echo
"开始重命名对应的渠道包"
#apkfile=`find ${buildapk_path} -name "*${product_flavors}.apk"`
apkfile
=
"
`
find
${
buildapk_path
}
-name
"*
${
product_flavors
}
.apk"
`
"
apkfile
=
`
grep
"
${
product_flavors
}
*.apk"
`
#apkfile=`grep "${product_flavors}" *.apk`
echo
${
apkfile
}
#apkfile=`ls ${buildapk_path} | grep "${product_flavors}"`
echo
"当前路径"
echo
${
apkfile
}
rm
-rf
${
project_path
}
/apk/
*
echo
"当前路径"
pwd
cd
${
buildapk_path
}
mv
${
buildapk_path
}
/
${
apkfile
}
${
project_path
}
/apk/
${
branch_name
}
_
${
product_flavors
}
.apk
pwd
else
mv
${
apkfile
}
${
project_path
}
/apk/
${
branch_name
}
_
${
product_flavors
}
.apk
echo
"Fail to checkout branch
${
branch_name
}
"
.
else
exit
-1
echo
"Fail to build android"
.
fi
exit
-1
fi
}
}
function
upload_apk
()
function
upload_apk
()
...
@@ -67,5 +68,5 @@ get_code
...
@@ -67,5 +68,5 @@ get_code
build_android
build_android
upload_apk
#
upload_apk
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