diff --git a/jobs/Deploy_Hi365_IOS_SIT/config.xml b/jobs/Deploy_Hi365_IOS_SIT/config.xml
index e7daa9975280519e6ebe5b43875756bb0a380cc2..bff6a0d7c3fd0a340454ed76a8632c537cd963f0 100644
--- a/jobs/Deploy_Hi365_IOS_SIT/config.xml
+++ b/jobs/Deploy_Hi365_IOS_SIT/config.xml
@@ -15,35 +15,6 @@
hudson.model.Item.Read:longmengua
hudson.model.Item.Workspace:longmengua
-
- ylhealth
-
-
-
-
- BUILD_BRANCH
-
-
-
- develop
- master
-
-
-
-
- BUILD_ENV
-
-
-
- Debug
- SIT
- UAT
- Release
-
-
-
-
-
10
@@ -52,8 +23,21 @@
-1
+
+ ylhealth
+
+
+
+
+ Version_Number
+
+ 0.0.0
+ false
+
+
+
-
+
2
@@ -63,7 +47,7 @@
- */${BUILD_BRANCH}
+ develop
false
@@ -80,23 +64,8 @@
# Choose build dart by environment
-if [ $BUILD_ENV == "SIT" ]
-then
- default_doc="main_sit.dart"
- export_method="ad-hoc"
-elif [ $BUILD_ENV == "UAT" ]
-then
- default_doc="main_uat.dart"
- export_method="ad-hoc"
-elif [ $BUILD_ENV == "Release" ]
-then
- default_doc="main_prod.dart"
- export_method="app-store"
-elif [ $BUILD_ENV == "Debug" ]
-then
- default_doc="main_sit.dart"
- export_method="development"
-fi
+default_doc="main_sit.dart"
+export_method="ad-hoc"
# Set the variable
project_path=$(pwd)
@@ -116,7 +85,7 @@ git_short_hash=$(git rev-parse --short HEAD)
scheme="Runner"
# package configuration for fastlane
-configuration=${BUILD_ENV}
+configuration="Debug"
# iOS project path
workspace_path="${project_path}/ios/Runner.xcodeproj"
@@ -130,7 +99,7 @@ output_path="${project_path}/ipa"
archive_path="$output_path/hi365_${export_method}_${now}.xcarchive"
# ipa name
-ipa_name="Hi365_SIT_${current_date}_${git_short_hash}.ipa"
+ipa_name="Hi365_SIT_${current_date}_$Version_Number_${git_short_hash}.ipa"
# ipa export path
ipa_path="$output_path/${ipa_name}"
@@ -171,7 +140,7 @@ fi
- NotifyMessage=Deploy Hi365 IOS Failure in SIT!
+ NotifyMessage=Deploy Hi365 IOS Failure in SIT fail. Please check it.
false