diff --git a/config.xml b/config.xml index c3a4763dd37bb9b25f348d25908f5322e16823db..426bbb7f441f8f5ce44453b1add8cbb52b56df12 100644 --- a/config.xml +++ b/config.xml @@ -579,6 +579,7 @@ HRB_Mobile_Other_apk HRB_Mobile_Other_ipa HRB_Mobile_UAT_DHP_ipa + Mobile_UAT_DHP_apk diff --git a/jobs/Mobile_UAT_DHP_apk/config.xml b/jobs/Mobile_UAT_DHP_apk/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4ad82ba6460d28d3d2cd3b514861a3257b897eb9 --- /dev/null +++ b/jobs/Mobile_UAT_DHP_apk/config.xml @@ -0,0 +1,120 @@ + + + + 打包 APK,不做 code push + + false + + + ylhealth + + + + + HRB_Mobile_UAT_Branch + UAT 使用的版本,如: +release/1.15GA +hotfix/1.14.1GA + release/1.43 + 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_$(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 '' "/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 + +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 + +bundle exec fastlane android uat + + + VERSION=UAT_$(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 done. + false + + + Notify_Group + SUCCESS + false + false + + + + + $RD_Group $QA_Group + false + false + + + + + false + + + false + + + xterm + + + + \ No newline at end of file