diff --git a/jobs/HRB_Mobile_Other_apk/config.xml b/jobs/HRB_Mobile_Other_apk/config.xml index 7092cde2cf2d610adefcc800d45c2264083125cd..70044dc08c417235710f69a4f5d5d41d1cb5ff4c 100644 --- a/jobs/HRB_Mobile_Other_apk/config.xml +++ b/jobs/HRB_Mobile_Other_apk/config.xml @@ -35,6 +35,12 @@ commitId test false + + API_SERVER + 連線位置 + 10.32.86.124 + false + @@ -70,15 +76,17 @@ 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:\/\/${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 '' "/allergyUrl/s/\__DEV__.*\';/\'http:\/\/${API_SERVER}\/\';/" src/configs/index.js sed -i '' 's/appVersion.*/appVersion": "1.27"/' appConfig.json export ANDROID_HOME=/Users/jenkins/Library/Android/sdk -npm run bundle-worker-android -bundle exec fastlane android beta +##npm run bundle-worker-android +npm run build-thread-android +fastlane android beta VERSION=SIT_${DownloadName}_$(date +%Y%m%d)