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
29bdce17
Commit
29bdce17
authored
Sep 21, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
279036bb
e62806af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+15
-10
No files found.
qa_shell_script/app/XyqbAndroidBuild.sh
View file @
29bdce17
...
...
@@ -12,6 +12,8 @@ branch_name=$1
product_flavors
=
$2
build_time
=
$3
test_server
=
$4
apk_name
=
$5
need_upload
=
$6
cd
${
project_path
}
function
get_code
()
...
...
@@ -81,7 +83,7 @@ function build_android()
echo
"当前路径
`
pwd
`
"
#mv ${ApkFile} ${StroeApk_path}/${branch_name}_${product_flavors}.apk
mv
${
ApkFile
}
${
branch_name
}
_
${
product_flavors
}
_
${
build_time
}
.apk
cp
-R
${
branch_name
}
_
${
product_flavors
}
_
${
build_time
}
.apk
${
downloadApk_path
}
/
${
branch
_name
}
.apk
cp
-R
${
branch_name
}
_
${
product_flavors
}
_
${
build_time
}
.apk
${
downloadApk_path
}
/
${
apk
_name
}
.apk
else
echo
"构建失败,请联系管理员查看"
.
exit
-1
...
...
@@ -90,6 +92,8 @@ function build_android()
function
upload_apk
()
{
if
[
"
$need_upload
"
-eq
"true"
]
;
then
echo
"apk正在上传到蒲公英,请等待......"
#cd ${StroeApk_path}
echo
"当前上传apk包的路径是
`
pwd
`
"
...
...
@@ -98,6 +102,7 @@ function upload_apk()
if
[
$?
!=
0
]
;
then
echo
"上传失败,请联系管理员查看"
fi
fi
}
#get_code
...
...
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