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
645c41df
Commit
645c41df
authored
Jun 14, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20170121: Job [HRB_Mobile_Prod_apk_inhouse] configuration updated
Change performed by §N¨ήS
parent
88152793
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
jobs/HRB_Mobile_Prod_apk_inhouse/config.xml
jobs/HRB_Mobile_Prod_apk_inhouse/config.xml
+3
-8
No files found.
jobs/HRB_Mobile_Prod_apk_inhouse/config.xml
View file @
645c41df
...
...
@@ -54,21 +54,17 @@ hotfix/1.14.1GA</description>
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
PATH=
"
$
PATH:/usr/local/bin:/Users/scott
/.fastlane/bin/
"
export VERSION=$(grep appVersion appConfig.json|cut -d
'"'
-f4)_$(git rev-parse --short HEAD)
<command>
PATH=
"
$
HOME/.rvm/bin:/usr/local/bin:$PATH:/Users/jenkins
/.fastlane/bin/
"
export VERSION=
Prod_
$(grep appVersion appConfig.json|cut -d
'"'
-f4)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=
"
%ci
"
--)
npm install
# RNFB_ANDROID_PERMISSIONS=true react-native link
npm run reset-android
sed -i
""
'
/url/s/http.*\//https:\/\/hrb.foxconn.com\//g
'
src/configs/index.js
sed -i
''
"
/version/s/\
'
.*\
'
;/\
'
${VERSION}\
'
;/
"
src/configs/index.js
sed -i
''
"
/modifiedTime/s/\
'
.*\
'
;/\
'
${MODIFIED_DATE}\
'
;/
"
src/configs/index.js
sed -i
''
'
s/piwikSiteId_ios =.*/piwikSiteId_ios = 10;/ ;s/piwikSiteId_android =.*/piwikSiteId_android = 11;/; s/installSourceId_android =.*/installSourceId_android =
'
\
''
HonHai
'
\
''
;/
'
src/configs/index.js
export ANDROID_HOME=/Users/jenkins/Library/Android/sdk
# node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./android --entry-file index.thread.js --platform android --bundle-output ./android/app/src/main/assets/threads/index.thread.bundle --sourcemap-output ./android/app/src/main/assets/threads/index.thread.map
npm run build-thread-android
bundle exec fastlane android gradleRelease
</command>
</hudson.tasks.Shell>
...
...
@@ -77,7 +73,6 @@ bundle exec fastlane android gradleRelease</command>
MODIFIED_DATE=$(git log -1 --format=
"
%ci
"
--)
NAME=HRB_Mobile
# mv android/app/build/outputs/apk/release/app-release.apk ~/Sites/${NAME}_${VERSION}.apk
scp -o ProxyCommand=
'
ssh -p 8080 jenkins@10.32.86.102 nc %h %p
'
android/app/build/outputs/apk/release/app-release.apk jenkins@10.36.220.161:/opt/www/hrb/mobileapp/update/${NAME}_${VERSION}.apk
</command>
</hudson.tasks.Shell>
</builders>
...
...
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