DHP 只打包 ipa, 不做Code Push
false
ylhealth
GIT_BRANCH
develop
feature/I18N
release/1.43
hotfix/1.43.1
DHP/develop
false
API_SERVER
172.16.40.165
false
-1
5
-1
-1
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_JV_$(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
# RN0.57.8 modify(HA-1058), after RN0.58 will remove this command
sed -i "" 's/NSUInteger loopCount = 0;/CGFloat loopCount = 0;/' node_modules/react-native/Libraries/Image/RCTGIFImageDecoder.m
security set-key-partition-list -S apple: -k Yonglinit123 -D "iPhone Distribution: YONGLIN YONGLIN BIOTECH CORP." -t private
npm run build-thread-ios
bundle exec fastlane ios beta
VERSION=SIT_JV_$(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_JV_ipa/$NAME.ipa ~/Sites/${NAME}_${VERSION}.ipa
scp ~/Sites/${NAME}_${VERSION}.ipa appuploader@10.57.117.135:~/app/jv/
$RD_Group $QA_Group
false
true
false
false
xterm