Commit 0a2e1f9d authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20170121: Job [HRB_Mobile_UAT_ipa] configuration updated

Change performed by §N¨ήS
parent 156cfb93
...@@ -17,6 +17,12 @@ hotfix/1.14.1GA</description> ...@@ -17,6 +17,12 @@ hotfix/1.14.1GA</description>
<defaultValue>release/1.55</defaultValue> <defaultValue>release/1.55</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>
...@@ -54,29 +60,7 @@ hotfix/1.14.1GA</description> ...@@ -54,29 +60,7 @@ hotfix/1.14.1GA</description>
<concurrentBuild>false</concurrentBuild> <concurrentBuild>false</concurrentBuild>
<builders> <builders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>#security set-key-partition-list -S apple: -k Yonglinit123 -D &quot;iPhone Distribution: YONGLIN YONGLIN BIOTECH CORP.&quot; -t private <command>sh jenkins_ios_uat.sh ${CODE_PUSH}</command>
sh jenkins_ios.sh UAT
sed -i &quot;&quot; &apos;/url/s/http.*\//https:\/\/uat.my.uhealthbank.com\//g&apos; src/configs/index.js
sed -i &apos;&apos; &quot;/version/s/\&apos;.*\&apos;;/\&apos;${VERSION}\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/modifiedTime/s/\&apos;.*\&apos;;/\&apos;${MODIFIED_DATE}\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/allergyUrl/s/__DEV__.*url;/\&apos;https:\/\/uat.my.uhealthbank.com\/\&apos;;/&quot; src/configs/index.js
# RN0.57.8 modify(HA-1058), after RN0.58 will remove this command
#sed -i &quot;&quot; &apos;s/NSUInteger loopCount = 0;/CGFloat loopCount = 0;/&apos; node_modules/react-native/Libraries/Image/RCTGIFImageDecoder.m
npm run build-thread-ios
bundle exec fastlane ios uat</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>VERSION=UAT_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
NAME=HRB_Mobile
mv $NAME.ipa ~/Sites/${NAME}_${VERSION}.ipa
scp -i ~/jenkins/jenkins ~/Sites/${NAME}_${VERSION}.ipa appuploader@10.57.117.135:~/app/hrb/</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
<hudson.plugins.parameterizedtrigger.TriggerBuilder plugin="parameterized-trigger@2.35.2"> <hudson.plugins.parameterizedtrigger.TriggerBuilder plugin="parameterized-trigger@2.35.2">
<configs> <configs>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment