diff --git a/jobs/HRB_Mobile_UAT_apk_CodePush/config.xml b/jobs/HRB_Mobile_UAT_apk_CodePush/config.xml index a2be8f13a85f316888f7de69277d4bebf98b4e52..a51e02d0160dfc730f85d9ced525e4446cf1936b 100644 --- a/jobs/HRB_Mobile_UAT_apk_CodePush/config.xml +++ b/jobs/HRB_Mobile_UAT_apk_CodePush/config.xml @@ -5,7 +5,7 @@ false - + ylhealth @@ -29,7 +29,7 @@ hotfix/1.14.1GA - + 2 @@ -55,17 +55,16 @@ hotfix/1.14.1GA false - PATH="$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/" -VERSION=UAT_$(date +%Y%m%d)_$(git rev-parse --short HEAD) -MODIFIED_DATE=$(git log -1 --format="%ci" --) + sh jenkins_android.sh UAT -npm install - -sed -i "" '/url/s/http.*\//http:\/\/10.32.86.139\//g' src/configs/index.js +sed -i "" '/url/s/http.*\//https:\/\/uat.my.uhealthbank.com\//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__.*url;/\'https:\/\/uat.my.uhealthbank.com\/\';/" src/configs/index.js + +export ANDROID_HOME=/Users/jenkins/Library/Android/sdk -code-push release-react HRB_Mobile_android android -m -d UAT +appcenter codepush release-react -a h2uclub/HRB_Mobile_android -m -d UAT