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

20170121: Job [Mobile_UAT_DHP_apk] configuration updated

Change performed by §N¨ήS
parent 7e6fac44
<?xml version='1.1' encoding='UTF-8'?> <?xml version='1.1' encoding='UTF-8'?>
<project> <project>
<actions/> <actions/>
<description>打包 APK,不做 code push&#xd; <description>DHP 打包 APK,不做 code push&#xd;
</description> </description>
<keepDependencies>false</keepDependencies> <keepDependencies>false</keepDependencies>
<properties> <properties>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<description>UAT 使用的版本,如: <description>UAT 使用的版本,如:
release/1.15GA release/1.15GA
hotfix/1.14.1GA</description> hotfix/1.14.1GA</description>
<defaultValue>release/1.43</defaultValue> <defaultValue>release/1.45</defaultValue>
<trim>false</trim> <trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition> </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions> </parameterDefinitions>
...@@ -56,25 +56,24 @@ hotfix/1.14.1GA</description> ...@@ -56,25 +56,24 @@ hotfix/1.14.1GA</description>
<builders> <builders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>PATH=&quot;$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/&quot; <command>PATH=&quot;$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/&quot;
VERSION=UAT_$(date +%Y%m%d)_$(git rev-parse --short HEAD) VERSION=UAT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --) MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
npm install npm install
# RNFB_ANDROID_PERMISSIONS=true react-native link # RNFB_ANDROID_PERMISSIONS=true react-native link
sed -i &quot;&quot; &apos;/url/s/http.*\//http:\/\/10.32.86.139\//g&apos; src/configs/index.js sed -i &quot;&quot; &apos;/url/s/http.*\//https:\/\/dihtest.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;/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;/modifiedTime/s/\&apos;.*\&apos;;/\&apos;${MODIFIED_DATE}\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/allergyUrl/s/\__DEV__.*\&apos;;/\&apos;http:\/\/10.32.86.132\/\&apos;;/&quot; src/configs/index.js sed -i &apos;&apos; &quot;/allergyUrl/s/\__DEV__.*\&apos;;/\&apos;https:\/\/dihtest.uhealthbank.com\/\&apos;;/&quot; src/configs/index.js
export ANDROID_HOME=/Users/jenkins/Library/Android/sdk 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.worker.js --platform android --bundle-output ./android/app/src/main/assets/index.worker.bundle --sourcemap-output ./android/app/src/main/assets/index.worker.map npm run build-thread-android
bundle exec fastlane android uat</command> bundle exec fastlane android uat</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>VERSION=UAT_$(date +%Y%m%d)_$(git rev-parse --short HEAD) <command>VERSION=UAT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --) MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
NAME=HRB_Mobile NAME=HRB_Mobile
...@@ -88,7 +87,7 @@ scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/hrb/</command ...@@ -88,7 +87,7 @@ scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/hrb/</command
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig> <hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
<configs> <configs>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>NotifyMessage=Deploy HRB Mobile apk on UAT done.</properties> <properties>NotifyMessage=Deploy HRB Mobile apk on UAT DHP done.</properties>
<textParamValueOnNewLine>false</textParamValueOnNewLine> <textParamValueOnNewLine>false</textParamValueOnNewLine>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
</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