From c297326e0f349b3bd3c49d3f5648ba25f02e8dde Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Tue, 23 Apr 2019 21:47:32 +0800 Subject: [PATCH] scott: Job [HRB_Mobile_SIT_JV_apk] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/HRB_Mobile_SIT_JV_apk/config.xml | 114 ++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 jobs/HRB_Mobile_SIT_JV_apk/config.xml diff --git a/jobs/HRB_Mobile_SIT_JV_apk/config.xml b/jobs/HRB_Mobile_SIT_JV_apk/config.xml new file mode 100644 index 00000000..4059a59b --- /dev/null +++ b/jobs/HRB_Mobile_SIT_JV_apk/config.xml @@ -0,0 +1,114 @@ + + + + DHP 打包 APK,不做 code push + false + + + + -1 + 5 + -1 + -1 + + + + ylhealth + + + + + GIT_BRANCH + develop +feature/I18N +release/1.43 +hotfix/1.43.1 + DHP + false + + + API_SERVER + + 10.32.86.124 + false + + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + MAC_BUILD_Machine + false + false + false + false + + false + + + export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 + +PATH="$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/" +VERSION=SIT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD) +MODIFIED_DATE=$(git log -1 --format="%ci" --) + +npm install --update-binary + +sed -i '' "/url/s/http.*\//http:\/\/${API_SERVER}\//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 '' "/defaultLanguageCode/s/\'.*\';/\'en_US\';/" src/configs/index.js +sed -i '' "/unitStandard/s/\'.*\';/\'USCU\';/" src/configs/index.js +sed -i '' "/allergyUrl/s/\__DEV__.*\';/\'http:\/\/${API_SERVER}\/\';/" src/configs/index.js +sed -i '' 's/appVersion.*/appVersion": "1.27"/' appConfig.json + +export ANDROID_HOME=/Users/jenkins/Library/Android/sdk + +npm run build-thread-android +bundle exec fastlane android beta + + + VERSION=SIT_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/releaseStaging/app-releaseStaging.apk ~/Sites/${NAME}_${VERSION}.apk +scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/dhp/ + + + + + $RD_Group $QA_Group + true + false + + + + + false + + + false + + + + xterm + + + \ No newline at end of file -- 2.26.2