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
42a245b3
Commit
42a245b3
authored
Jun 03, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20170121: Job [HRB_Mobile_SIT_apk_CodePush] configuration updated
Change performed by §N¨ήS
parent
687cfc27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
15 deletions
+33
-15
jobs/HRB_Mobile_SIT_apk_CodePush/config.xml
jobs/HRB_Mobile_SIT_apk_CodePush/config.xml
+33
-15
No files found.
jobs/HRB_Mobile_SIT_apk_CodePush/config.xml
View file @
42a245b3
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>
目前停用, HRBApp 目前沒有使用code push

只做 Code Push,不打包 App
</description>
<description>
只做 Code Push,不打包 App
</description>
<keepDependencies>
false
</keepDependencies>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.12"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition
plugin=
"global-variable-string-parameter@1.2"
>
<name>
GIT_BRANCH
</name>
<description>
develop
feature/I18N
release/1.47
hotfix/1.47.1
</description>
<defaultValue>
develop
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition
plugin=
"global-variable-string-parameter@1.2"
>
<name>
API_SERVER
</name>
<description></description>
<defaultValue>
10.32.86.124
</defaultValue>
<trim>
false
</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty>
<strategy
class=
"hudson.tasks.LogRotator"
>
<daysToKeep>
2
</daysToKeep>
...
...
@@ -13,11 +34,8 @@
<artifactNumToKeep>
-1
</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.11"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
</properties>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@3.
9.1
"
>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@3.
10.0
"
>
<configVersion>
2
</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
...
...
@@ -27,14 +45,14 @@
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>
*/
develop
</name>
<name>
*/
${GIT_BRANCH}
</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>
false
</doGenerateSubmoduleConfigurations>
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
M
AC_BUILD_Machine
</assignedNode>
<assignedNode>
M
ac_Node2
</assignedNode>
<canRoam>
false
</canRoam>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
...
...
@@ -43,17 +61,17 @@
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
PATH=
"
$PATH:/usr/local/bin:/Users/scott/.fastlane/bin/
"
VERSION=SIT_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=
"
%ci
"
--)
npm install --update-binary
<command>
sh jenkins_android.sh SIT
sed -i
&
quot;"
'
/url/s/http.*\//http:\/\/10.32.86.132\//g
&apos
;
src/configs/index.js
sed -i
&
apos;'
"
/url/s/http.*\//http:\/\/${API_SERVER}\//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
''
"
/allergyUrl/s/\__DEV__.*\
'
;/\
'
http:\/\/${API_SERVER}\/\
'
;/
"
src/configs/index.js
sed -i
''
'
s/appVersion.*/appVersion
"
:
"
1.27
"
/
'
appConfig.json
export ANDROID_HOME=/Users/jenkins/Library/Android/sdk
code-push release-react HRB_Mobile_android
android -m -d Staging
</command>
appcenter codepush release-react -a h2uclub/HRB_Mobile_
android -m -d Staging
</command>
</hudson.tasks.Shell>
</builders>
<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