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

20170121: Job [HRB_Mobile_UAT_JV_apk] configuration updated

Change performed by §N¨ήS
parent bd82e092
......@@ -15,7 +15,7 @@
<description>UAT 使用的版本,如:
release/1.15GA
hotfix/1.14.1GA</description>
<defaultValue>DHP_master</defaultValue>
<defaultValue>DHP/release/1.53</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions>
......@@ -62,12 +62,12 @@ MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
npm install
# RNFB_ANDROID_PERMISSIONS=true react-native link
sed -i &quot;&quot; &apos;/url/s/http.*\//https:\/\/dihtest.uhealthbank.com\//g&apos; src/configs/index.js
sed -i &quot;&quot; &apos;/url/s/http.*\//https:\/\/jvtest.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;/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;/modifiedTime/s/\&apos;.*\&apos;;/\&apos;${MODIFIED_DATE}\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/allergyUrl/s/__DEV__.*url;/\&apos;http:\/\/10.32.86.124\/\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/allergyUrl/s/__DEV__.*url;/\&apos;https:\/\/jvtest.uhealthbank.com\/\&apos;;/&quot; src/configs/index.js
export ANDROID_HOME=/Users/jenkins/Library/Android/sdk
......@@ -76,12 +76,12 @@ npm run build-thread-android
bundle exec fastlane android uat</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>VERSION=UAT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
<command>VERSION=UAT_JV_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
NAME=HRB_Mobile
mv android/app/build/outputs/apk/releaseUAT/app-releaseUAT.apk ~/Sites/${NAME}_${VERSION}.apk
scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/dhp/</command>
scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/jv/</command>
</hudson.tasks.Shell>
</builders>
<publishers>
......@@ -90,7 +90,7 @@ scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/dhp/</command
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
<configs>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>NotifyMessage=Deploy HRB Mobile apk on UAT DHP done.</properties>
<properties>NotifyMessage=Deploy HRB Mobile apk on UATJV done.</properties>
<textParamValueOnNewLine>false</textParamValueOnNewLine>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
</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