From f769a459204a129eefa60d36455a8c367795785c Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 5 Dec 2018 12:23:21 +0800 Subject: [PATCH] 20170121: Job [Mobile_UAT_DHP_apk] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by §N¨ήS --- jobs/Mobile_UAT_DHP_apk/config.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/jobs/Mobile_UAT_DHP_apk/config.xml b/jobs/Mobile_UAT_DHP_apk/config.xml index 4ad82ba6..74885f4b 100644 --- a/jobs/Mobile_UAT_DHP_apk/config.xml +++ b/jobs/Mobile_UAT_DHP_apk/config.xml @@ -1,7 +1,7 @@ - 打包 APK,不做 code push + DHP 打包 APK,不做 code push false @@ -15,7 +15,7 @@ UAT 使用的版本,如: release/1.15GA hotfix/1.14.1GA - release/1.43 + release/1.45 false @@ -56,25 +56,24 @@ hotfix/1.14.1GA PATH="$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/" -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="%ci" --) npm install # RNFB_ANDROID_PERMISSIONS=true react-native link -sed -i "" '/url/s/http.*\//http:\/\/10.32.86.139\//g' src/configs/index.js +sed -i "" '/url/s/http.*\//https:\/\/dihtest.uhealthbank.com\//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:\/\/10.32.86.132\/\';/" src/configs/index.js +sed -i '' "/allergyUrl/s/\__DEV__.*\';/\'https:\/\/dihtest.uhealthbank.com\/\';/" src/configs/index.js 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 - 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="%ci" --) NAME=HRB_Mobile @@ -88,7 +87,7 @@ scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/hrb/ - NotifyMessage=Deploy HRB Mobile apk on UAT done. + NotifyMessage=Deploy HRB Mobile apk on UAT DHP done. false -- 2.26.2