用來建置feature branch或是其他Branch使用 只打包 ipa, 不做Code Push echo "source 'https://rubygems.org'" > Gemfile echo "gem 'cocoapods', '1.4.0'" >> Gemfile echo "gem 'fastlane', '2.107.0'" >> Gemfile false ylhealth HRB_Mobile_Other_Branch feature branch使用的版本,如: feature/HA-818 其他Branch請自行設定 RN0.50 false -1 5 -1 -1 2 https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git 3485e854-8389-40e8-8c86-b94e94e91904 */${HRB_Mobile_Other_Branch} false MAC_BUILD_Machine false false false false false PATH="$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/" VERSION=SIT_Other_$(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 '' '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 npm run bundle-worker-ios echo "source 'https://rubygems.org'" > Gemfile echo "gem 'cocoapods', '1.4.0'" >> Gemfile echo "gem 'fastlane', '2.107.0'" >> Gemfile bundle exec fastlane ios beta VERSION=SIT_Other_$(date +%Y%m%d)_$(git rev-parse --short HEAD) MODIFIED_DATE=$(git log -1 --format="%ci" --) NAME=HRB_Mobile mv ~/jenkins/workspace/HRB_Mobile_Other_ipa/$NAME.ipa ~/Sites/${NAME}_${VERSION}.ipa scp ~/Sites/${NAME}_${VERSION}.ipa appuploader@10.57.117.135:~/app/hrb/ $RD_Group false true false false xterm