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
48d6956a
Commit
48d6956a
authored
Mar 08, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a1d390c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+47
-0
No files found.
qa_shell_script/app/XyqbAndroidBuild.sh
0 → 100755
View file @
48d6956a
#!/bin/bash
project_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild
target_file
=
${
project_path
}
/app/build.gradle
store_path
=
/home/ganshc/
source_file
=
${
store_path
}
/build.gradle
buildapk_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives
branch_name
=
$1
product_flavors
=
$2
cd
${
project_path
}
if
[
-z
${
branch_name
}
]
;
then
echo
"checkout default branch master"
git pull
else
echo
"checkout specified branch
${
branch_name
}
"
which git
git checkout
${
branch_name
}
if
[
$?
=
0
]
;
then
echo
"checkout branch
$1
is ok"
.
git pull
else
echo
"Fail to checkout branch
${
branch_name
}
"
.
exit
-1
fi
fi
echo
"copy file to app"
cp
-r
${
source_file
}
${
target_file
}
echo
"gradle build start"
gradle clean resguard
--stacktrace
--debug
echo
"rename apk"
cd
${
buildapk_path
}
cp
*${
product_flavors
}
.apk /home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/
${
branch_name
}
_
${
product_flavors
}
.apk
echo
"upload apk to pugongyin"
curl
-F
"file=@/home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/
${
branch_name
}
_
${
product_flavors
}
.apk"
-F
"uKey=13d17385c02ea9ea994d0c985d87ff32"
-F
"_api_key=5b09af98d5a8ff43f2f39935fa6bfbc1"
https://static.pgyer.com/app/qrcode/lJrv
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