diff --git a/config.xml b/config.xml index 33e25b26ce5a233f6263044ca9f0ef8450d36d67..f5e473471e38b07c91eccebfc84050e29e08b2c5 100644 --- a/config.xml +++ b/config.xml @@ -777,6 +777,7 @@ HRB_Mobile_Other_apk HRB_Mobile_Other_ipa HRB_Mobile_SIT_I18N_apk + HRB_Mobile_SIT_I18N_ipa diff --git a/jobs/HRB_Mobile_SIT_I18N_ipa/config.xml b/jobs/HRB_Mobile_SIT_I18N_ipa/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..07c75f33854316396b1630575ee1f58b75e9789e --- /dev/null +++ b/jobs/HRB_Mobile_SIT_I18N_ipa/config.xml @@ -0,0 +1,95 @@ + + + + 只打包 ipa, 不做Code Push + false + + + ylhealth + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */develop + + + 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_$(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:\/\/10.32.86.132\//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 '' 's/appVersion.*/appVersion": "1.27"/' appConfig.json + +security set-key-partition-list -S apple: -k Yonglinit123 -D "iPhone Distribution: YONGLIN YONGLIN BIOTECH CORP." -t private + +node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./ios --entry-file index.worker.js --platform ios --bundle-output ./ios/worker.jsbundle --sourcemap-output ./ios/ios.worker.map + +bundle exec fastlane ios beta + + + VERSION=SIT_$(date +%Y%m%d)_$(git rev-parse --short HEAD) +MODIFIED_DATE=$(git log -1 --format="%ci" --) +NAME=HRB_Mobile + +mv ~/jenkins/workspace/HRB_Mobile_SIT_ipa/$NAME.ipa ~/Sites/${NAME}_${VERSION}.ipa +scp ~/Sites/${NAME}_${VERSION}.ipa appuploader@10.57.117.135:~/app/hrb/ + + + + + + $RD_Group $QA_Group + false + true + + + + + false + + + false + + + xterm + + + + \ No newline at end of file