Commit 93e025d2 authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20170121: Job [HRB_Mobile_SIT_DHP_ipa] configuration updated

Change performed by §N¨ήS
parent 512d3338
...@@ -24,6 +24,12 @@ hotfix/1.43.1</description> ...@@ -24,6 +24,12 @@ hotfix/1.43.1</description>
<defaultValue>10.32.86.124</defaultValue> <defaultValue>10.32.86.124</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>dhp</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>
...@@ -61,28 +67,7 @@ hotfix/1.43.1</description> ...@@ -61,28 +67,7 @@ hotfix/1.43.1</description>
<concurrentBuild>false</concurrentBuild> <concurrentBuild>false</concurrentBuild>
<builders> <builders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>sh jenkins_ios.sh SIT_DHP <command>sh jenkins_ios_sit.sh ${CODE_PUSH}</command>
sed -i &apos;&apos; &quot;/url/s/http.*\//http:\/\/${API_SERVER}\//g&quot; 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;/defaultLanguageCode/s/\&apos;.*\&apos;;/\&apos;en_US\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/unitStandard/s/\&apos;.*\&apos;;/\&apos;USCU\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/allergyUrl/s/\__DEV__.*\&apos;;/\&apos;http:\/\/10.32.86.124\/\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &apos;s/appVersion.*/appVersion&quot;: &quot;1.27&quot;/&apos; appConfig.json
#security set-key-partition-list -S apple: -k Yonglinit123 -D &quot;iPhone Distribution: YONGLIN YONGLIN BIOTECH CORP.&quot; -t private
npm run build-thread-ios
bundle exec fastlane ios beta</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>VERSION=SIT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
NAME=HRB_Mobile
mv ~/jenkins/workspace/HRB_Mobile_SIT_DHP_ipa/$NAME.ipa ~/Sites/${NAME}_${VERSION}.ipa
scp -i ~/jenkins/jenkins ~/Sites/${NAME}_${VERSION}.ipa appuploader@10.57.117.135:~/app/dhp/</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
<publishers> <publishers>
......
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