From 1fd9c5dd1dd3453ea47b9dfb39390b118606c985 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Thu, 19 Sep 2019 14:02:15 +0800 Subject: [PATCH] 20180083: Job [Hi365_SIT_Deploy_iOS] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ยงรตยบ~? --- jobs/Hi365_SIT_Deploy_iOS/config.xml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/jobs/Hi365_SIT_Deploy_iOS/config.xml b/jobs/Hi365_SIT_Deploy_iOS/config.xml index 8e8c96ab..81c71326 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 -- 2.26.2