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
b23e36cf
Commit
b23e36cf
authored
Jan 10, 2020
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
7e521d86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
25 deletions
+12
-25
jobs/HRB_Mobile_Prod_apk_inhouse/config.xml
jobs/HRB_Mobile_Prod_apk_inhouse/config.xml
+12
-25
No files found.
jobs/HRB_Mobile_Prod_apk_inhouse/config.xml
View file @
b23e36cf
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<description>
打包 APK 放到 http server 上
</description>
<description>
打包 APK 放到 http server 上
</description>
<keepDependencies>
false
</keepDependencies>
<keepDependencies>
false
</keepDependencies>
<properties>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.1
2
"
>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.1
3
"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<hudson.model.ParametersDefinitionProperty>
...
@@ -17,6 +17,12 @@ hotfix/1.14.1GA</description>
...
@@ -17,6 +17,12 @@ hotfix/1.14.1GA</description>
<defaultValue>
master
</defaultValue>
<defaultValue>
master
</defaultValue>
<trim>
false
</trim>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition
plugin=
"global-variable-string-parameter@1.2"
>
<name>
CODE_PUSH
</name>
<description>
哪一個 Job 執行 code-push
</description>
<defaultValue>
hrb
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty>
<jenkins.model.BuildDiscarderProperty>
...
@@ -28,7 +34,7 @@ hotfix/1.14.1GA</description>
...
@@ -28,7 +34,7 @@ hotfix/1.14.1GA</description>
</strategy>
</strategy>
</jenkins.model.BuildDiscarderProperty>
</jenkins.model.BuildDiscarderProperty>
</properties>
</properties>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@
3.1
0.0"
>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@
4.
0.0"
>
<configVersion>
2
</configVersion>
<configVersion>
2
</configVersion>
<userRemoteConfigs>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<hudson.plugins.git.UserRemoteConfig>
...
@@ -54,37 +60,18 @@ hotfix/1.14.1GA</description>
...
@@ -54,37 +60,18 @@ hotfix/1.14.1GA</description>
<concurrentBuild>
false
</concurrentBuild>
<concurrentBuild>
false
</concurrentBuild>
<builders>
<builders>
<hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
PATH=
"
$HOME/.rvm/bin:/usr/local/bin:$PATH:/Users/jenkins/.fastlane/bin/
"
<command>
sh jenkins_android_inhouse_prod.sh ${CODE_PUSH}
</command>
export VERSION=Prod_$(grep appVersion appConfig.json|cut -d
'"'
-f4)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=
"
%ci
"
--)
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
npm run build-thread-android
bundle exec fastlane android gradleRelease
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
VERSION=Prod_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=
"
%ci
"
--)
NAME=HRB_Mobile
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>
</hudson.tasks.Shell>
</builders>
</builders>
<publishers>
<publishers>
<hudson.tasks.Mailer
plugin=
"mailer@1.2
3
"
>
<hudson.tasks.Mailer
plugin=
"mailer@1.2
9
"
>
<recipients>
$RD_Group $QA_Group
</recipients>
<recipients>
$RD_Group $QA_Group
</recipients>
<dontNotifyEveryUnstableBuild>
false
</dontNotifyEveryUnstableBuild>
<dontNotifyEveryUnstableBuild>
false
</dontNotifyEveryUnstableBuild>
<sendToIndividuals>
false
</sendToIndividuals>
<sendToIndividuals>
false
</sendToIndividuals>
</hudson.tasks.Mailer>
</hudson.tasks.Mailer>
</publishers>
</publishers>
<buildWrappers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup
plugin=
"ws-cleanup@0.3
7
"
>
<hudson.plugins.ws__cleanup.PreBuildCleanup
plugin=
"ws-cleanup@0.3
8
"
>
<deleteDirs>
false
</deleteDirs>
<deleteDirs>
false
</deleteDirs>
<cleanupParameter></cleanupParameter>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
<externalDelete></externalDelete>
...
@@ -93,6 +80,6 @@ scp -o ProxyCommand='ssh -p 8080 jenkins@10.32.86.102 nc %h %p' androi
...
@@ -93,6 +80,6 @@ scp -o ProxyCommand='ssh -p 8080 jenkins@10.32.86.102 nc %h %p' androi
<hudson.plugins.ansicolor.AnsiColorBuildWrapper
plugin=
"ansicolor@0.6.2"
>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper
plugin=
"ansicolor@0.6.2"
>
<colorMapName>
xterm
</colorMapName>
<colorMapName>
xterm
</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
<hudson.plugins.timestamper.TimestamperBuildWrapper
plugin=
"timestamper@1.
9
"
/>
<hudson.plugins.timestamper.TimestamperBuildWrapper
plugin=
"timestamper@1.
10
"
/>
</buildWrappers>
</buildWrappers>
</project>
</project>
\ No newline at end of file
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