diff --git a/jobs/Hi365_SIT_Deploy_iOS/config.xml b/jobs/Hi365_SIT_Deploy_iOS/config.xml index 8e8c96ab0d3551482bb201b201e4c2269cf44482..81c71326cc6b5bd7a162233e954d4484c7a674df 100644 --- a/jobs/Hi365_SIT_Deploy_iOS/config.xml +++ b/jobs/Hi365_SIT_Deploy_iOS/config.xml @@ -58,9 +58,18 @@ false - project_path=$(pwd) + # Choose build dart by environment +if [ $BUILD_BRANCH == "master" ] +then + default_doc="main_uat.dart" +else + default_doc="main_dev.dart" +fi + +# Set the variable +project_path=$(pwd) -flutter build ios -t lib/main_dev.dart +flutter build ios -t lib/${default_doc} cd $project_path/ios