From ecb19bfc8279a7bc3b94c74bac04844fe8219fd8 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 5 Dec 2018 12:26:49 +0800 Subject: [PATCH] 20170121: Job [HRB_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/HRB_Mobile_UAT_DHP_apk/config.xml | 119 +++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 jobs/HRB_Mobile_UAT_DHP_apk/config.xml diff --git a/jobs/HRB_Mobile_UAT_DHP_apk/config.xml b/jobs/HRB_Mobile_UAT_DHP_apk/config.xml new file mode 100644 index 00000000..74885f4b --- /dev/null +++ b/jobs/HRB_Mobile_UAT_DHP_apk/config.xml @@ -0,0 +1,119 @@ + + + + DHP 打包 APK,不做 code push + + false + + + ylhealth + + + + + HRB_Mobile_UAT_Branch + UAT 使用的版本,如: +release/1.15GA +hotfix/1.14.1GA + release/1.45 + false + + + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${HRB_Mobile_UAT_Branch} + + + false + + + + MAC_BUILD_Machine + false + false + false + false + + false + + + PATH="$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/" +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.*\//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__.*\';/\'https:\/\/dihtest.uhealthbank.com\/\';/" src/configs/index.js + +export ANDROID_HOME=/Users/jenkins/Library/Android/sdk + +npm run build-thread-android +bundle exec fastlane android uat + + + VERSION=UAT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD) +MODIFIED_DATE=$(git log -1 --format="%ci" --) +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/hrb/ + + + + + + + + + NotifyMessage=Deploy HRB Mobile apk on UAT DHP done. + false + + + Notify_Group + SUCCESS + false + false + + + + + $RD_Group $QA_Group + false + false + + + + + false + + + false + + + xterm + + + + \ No newline at end of file -- 2.26.2