diff --git a/config.xml b/config.xml index 80051a6da0dfc0182606369eb956addd1b77d444..415a540e551e16962f9c6c2544ee98ee9e6b7649 100644 --- a/config.xml +++ b/config.xml @@ -592,6 +592,7 @@ CRM_Mobile_Prod_apk_CodePush CRM_Mobile_Prod_ipa CRM_Mobile_Prod_ipa_CodePush + HRB_Mobile_Prod_JV_apk diff --git a/jobs/HRB_Mobile_Prod_JV_apk/config.xml b/jobs/HRB_Mobile_Prod_JV_apk/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f93e069859f5a29dca185b208894b8004eec16dd --- /dev/null +++ b/jobs/HRB_Mobile_Prod_JV_apk/config.xml @@ -0,0 +1,105 @@ + + + + 打包 APK,不做 code push + false + + + ylhealth + + + + + HRB_Mobile_Prod_Branch + UAT 使用的版本,如: +release/1.15GA +hotfix/1.14.1GA + DHP/master + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${HRB_Mobile_Prod_Branch} + + + false + + + + MAC_BUILD_Machine + false + false + false + false + + false + + + PATH="$PATH:/usr/local/bin:/Users/scott/.fastlane/bin/" +export VERSION=$(grep appVersion appConfig.json|cut -d'"' -f4)_$(git rev-list HEAD --count)_$(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:\/\/dhp.h2uclub.com\//g' src/configs/index.js +sed -i '' "/version/s/\'.*\';/\'${VERSION}\';/" 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 '' "/modifiedTime/s/\'.*\';/\'${MODIFIED_DATE}\';/" src/configs/index.js +sed -i '' 's/piwikSiteId_ios =.*/piwikSiteId_ios = 13;/ ;s/piwikSiteId_android =.*/piwikSiteId_android = 12;/' src/configs/index.js +sed -i '' "/allergyUrl/s/\__DEV__.*\';/\'https:\/\/dhp.h2uclub.com\/\';/" src/configs/index.js + +export ANDROID_HOME=/Users/jenkins/Library/Android/sdk + +npm run build-thread-android +bundle exec fastlane android release + + + VERSION=Prod_DIH_$(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/release/app-release.apk ~/Sites/${NAME}_${VERSION}.apk +scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/dhp/ + + + + + $RD_Group $QA_Group + false + false + + + + + false + + + false + + + xterm + + + + \ No newline at end of file