From ced223497d05980f2b66505eb92c43294eac3098 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 11 Sep 2019 18:11:54 +0800 Subject: [PATCH] 20180082: Job [Hi365_iOS] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ³¯¾_¶§ --- jobs/Hi365_iOS/config.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jobs/Hi365_iOS/config.xml b/jobs/Hi365_iOS/config.xml index 642f2eef..47dc5f9e 100644 --- a/jobs/Hi365_iOS/config.xml +++ b/jobs/Hi365_iOS/config.xml @@ -70,7 +70,7 @@ current_date=$(date +"%Y%m%d") app_version=$(grep 'version:' ${project_path}/pubspec.yaml | cut -d ' ' -f2) -git_short_hash=$(echo ${GIT_COMMIT}|cut -c1-8) +git_short_hash=$(git rev-parse --short HEAD) scheme="Runner" @@ -100,7 +100,7 @@ output_path="${project_path}/ipa" archive_path="$output_path/hi365_${export_method}_${now}.xcarchive" # ipa export path -ipa_path="$output_path/hi365_${app_version}.ipa" +ipa_path="$output_path/Hi365_SIT_${current_date}_${git_short_hash}.ipa" # ipa name ipa_name="Hi365_SIT_${current_date}_${git_short_hash}.ipa" @@ -117,7 +117,8 @@ echo "===commit msg: $1===" fastlane gym --scheme ${scheme} --clean --configuration ${configuration} --archive_path ${archive_path} --export_method ${export_method} --output_directory ${output_path} --output_name ${ipa_name} if [ ${export_method} != "app-store" ] then -echo "TODO: Publish to a place where user can download" +echo "Deploy to IPA repository" +scp -i ~/jenkins/jenkins ${ipa_path} appuploader@10.57.117.135:~/app/Hi365/${ipa_name}_${VERSION} fi -- 2.26.2