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
8474469d
Commit
8474469d
authored
Sep 20, 2017
by
QA—索 文涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: qa_shell_script/app/XyqbAndroidBuild.sh
parent
5bbec943
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+14
-10
No files found.
qa_shell_script/app/XyqbAndroidBuild.sh
View file @
8474469d
...
...
@@ -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,15 +92,17 @@ function build_android()
function
upload_apk
()
{
echo
"apk正在上传到蒲公英,请等待......"
#cd ${StroeApk_path}
echo
"当前上传apk包的路径是
`
pwd
`
"
#curl -F "file=@${branch_name}_${product_flavors}_${build_time}.apk" -F "uKey=13d17385c02ea9ea994d0c985d87ff32" -F "_api_key=5b09af98d5a8ff43f2f39935fa6bfbc1" https://qiniu-storage.pgyer.com/apiv1/app/upload
curl
-F
"file=@
${
branch_name
}
_
${
product_flavors
}
_
${
build_time
}
.apk"
-F
"uKey=41968e9da5a634b7b33dc8ff41e31c4e"
-F
"_api_key=8c303b6f70e8abbda50d1503568f1864"
https://qiniu-storage.pgyer.com/apiv1/app/upload
if
[
$?
!=
0
]
;
then
echo
"上传失败,请联系管理员查看"
fi
}
if
[
"
$need_upload
"
-eq
"true"
]
;
then
echo
"apk正在上传到蒲公英,请等待......"
#cd ${StroeApk_path}
echo
"当前上传apk包的路径是
`
pwd
`
"
#curl -F "file=@${branch_name}_${product_flavors}_${build_time}.apk" -F "uKey=13d17385c02ea9ea994d0c985d87ff32" -F "_api_key=5b09af98d5a8ff43f2f39935fa6bfbc1" https://qiniu-storage.pgyer.com/apiv1/app/upload
curl
-F
"file=@
${
branch_name
}
_
${
product_flavors
}
_
${
build_time
}
.apk"
-F
"uKey=41968e9da5a634b7b33dc8ff41e31c4e"
-F
"_api_key=8c303b6f70e8abbda50d1503568f1864"
https://qiniu-storage.pgyer.com/apiv1/app/upload
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