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
5a136e32
Commit
5a136e32
authored
Mar 13, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
a6fe258c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+8
-5
No files found.
qa_shell_script/app/XyqbAndroidBuild.sh
View file @
5a136e32
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
project_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild
project_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild
target_file
=
${
project_path
}
/app/build.gradle
target_file
=
${
project_path
}
/app/build.gradle
store_path
=
/home/ganshc/
store_path
=
/home/ganshc/
source_file
=
${
store_path
}
/build.gradle
source_gradlefile
=
${
store_path
}
/build.gradle
source_flavors
=
${
store_path
}
/markets.txt
buildapk_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives
buildapk_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives
branch_name
=
$1
branch_name
=
$1
product_flavors
=
$2
product_flavors
=
$2
...
@@ -29,7 +30,11 @@ fi
...
@@ -29,7 +30,11 @@ fi
echo
"copy file to app"
echo
"copy file to app"
cp
-r
${
source_file
}
${
target_file
}
cp
-r
${
source_gradlefile
}
${
target_file
}
if
[[
-z
${
product_flavors
}
]]
;
then
echo
"
${
product_flavors
}
"
>
${
project_path
}
/markets.txt
fi
echo
"gradle build start"
echo
"gradle build start"
...
@@ -37,9 +42,7 @@ gradle clean resguard --stacktrace --debug
...
@@ -37,9 +42,7 @@ gradle clean resguard --stacktrace --debug
echo
"rename apk"
echo
"rename apk"
cd
${
buildapk_path
}
apkfile
=
`
find /home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives
-name
"*
${
product_flavors
}
.apk"
`
apkfile
=
`
find ./
-name
"*
${
product_flavors
}
.apk"
`
cp
${
apkfile
}
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/
${
branch_name
}
_
${
product_flavors
}
.apk
cp
${
apkfile
}
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/
${
branch_name
}
_
${
product_flavors
}
.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