diff --git a/jobs/HRB_Mobile_Other_apk/config.xml b/jobs/HRB_Mobile_Other_apk/config.xml index bc74426ff306da188d413c3e8d9da7fd1f49137e..7b5d1177916930d62cb1f806bd2cdc79f0c65ae6 100644 --- a/jobs/HRB_Mobile_Other_apk/config.xml +++ b/jobs/HRB_Mobile_Other_apk/config.xml @@ -1,7 +1,7 @@ - 用來建置feature branch使用 + 用來建置feature branch或是其他Branch使用 只打包 APK, 不做Code Push false @@ -13,8 +13,9 @@ HRB_Mobile_Other_Branch feature branch使用的版本,如: -feature/HA-818 - feature/HA-818 +feature/HA-818 +其他Branch請自行設定 + RN0.50 false @@ -55,12 +56,12 @@ feature/HA-818 PATH="$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/" -VERSION=SIT_Upgrade_$(date +%Y%m%d)_$(git rev-parse --short HEAD) +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 "" '/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 '' 's/appVersion.*/appVersion": "1.27"/' appConfig.json @@ -71,7 +72,7 @@ node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest fastlane android beta - VERSION=SIT_Upgrade_$(date +%Y%m%d)_$(git rev-parse --short HEAD) + VERSION=SIT_Other_$(date +%Y%m%d)_$(git rev-parse --short HEAD) MODIFIED_DATE=$(git log -1 --format="%ci" --) NAME=HRB_Mobile @@ -80,14 +81,14 @@ scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/hrb/ - + $RD_Group true false - + false