Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
jenkins
Commits
3162e85c
Commit
3162e85c
authored
Sep 11, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20180082: Job [Hi365_Android] configuration updated
Change performed by ³¯¾_¶§
parent
c1d29c16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
jobs/Hi365_Android/config.xml
jobs/Hi365_Android/config.xml
+13
-3
No files found.
jobs/Hi365_Android/config.xml
View file @
3162e85c
...
@@ -54,6 +54,10 @@ cd ${project_path}/android
...
@@ -54,6 +54,10 @@ cd ${project_path}/android
app_version=$(grep
'
version:
'
pubspec.yaml | cut -d
'
'
-f2)
app_version=$(grep
'
version:
'
pubspec.yaml | cut -d
'
'
-f2)
current_date=$(date +
"
%Y%m%d
"
)
git_short_hash=$(git rev-parse --short HEAD)
# determine build type by git branch
# determine build type by git branch
if [ $BUILD_BRANCH ==
"
master
"
]
if [ $BUILD_BRANCH ==
"
master
"
]
then
then
...
@@ -62,13 +66,19 @@ else
...
@@ -62,13 +66,19 @@ else
build_type=
"
debug
"
build_type=
"
debug
"
fi
fi
output_path=
"
${project_path}/build/app/outputs/apk/${build_type}
"
apk_name=
"
hi365_SIT_${current_date}-${git_short_hash}.apk
"
app_name=
"
hi365_SIT_${build_type}-${app_version}.apk
"
apk_path=
"
${project_path}/build/app/outputs/apk/${build_type}/${apk_name}
"
flutter build apk --${build_type}
flutter build apk --${build_type}
# rename apk name
# rename apk name
mv ${output_path}/app-${build_type}.apk ${output_path}/${app_name}
</command>
mv ${output_path}/app-${build_type}.apk ${apk_path}
# deploy
echo
"
Deploy to APK repository
"
scp -i ~/jenkins/jenkins ${apk_path} appuploader@10.57.117.135:~/app/Hi365/${apk_name}
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
<publishers/>
<publishers/>
...
...
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