Commit 05451ef7 authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20180082: Job [Hi365_iOS] configuration updated

Change performed by ³¯¾_¶§
parent 29b29b40
...@@ -58,14 +58,19 @@ ...@@ -58,14 +58,19 @@
<concurrentBuild>false</concurrentBuild> <concurrentBuild>false</concurrentBuild>
<builders> <builders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command># security set-key-partition-list -S apple-tool:,apple: -s -k &quot;password&quot; ~/Library/Keychains/login.keychain-db <command>project_path=$(pwd)
project_path=$(pwd)
flutter build ios flutter build ios
cd $project_path/ios cd $project_path/ios
now=$(date +&quot;%Y_%m_%d_%H:%M&quot;) now=$(date +&quot;%Y_%m_%d_%H:%M&quot;)
scheme=&quot;Runner&quot; scheme=&quot;Runner&quot;
# package configuration for fastlane # package configuration for fastlane
configuration=${BUILD_TYPE} configuration=${BUILD_TYPE}
# export methods supports app-store, package, ad-hoc, enterprise, development, 和developer-id,即xcodebuild的method引數 # export methods supports app-store, package, ad-hoc, enterprise, development, 和developer-id,即xcodebuild的method引數
if [ $BUILD_TYPE == &quot;Release&quot; ] if [ $BUILD_TYPE == &quot;Release&quot; ]
then then
...@@ -76,26 +81,33 @@ then ...@@ -76,26 +81,33 @@ then
else else
export_method=&quot;development&quot; export_method=&quot;development&quot;
fi fi
# iOS project path # iOS project path
workspace_path=&quot;${project_path}/ios/Runner.xcodeproj&quot; workspace_path=&quot;${project_path}/ios/Runner.xcodeproj&quot;
# ipa export folder # ipa export folder
rm -rf &quot;${project_path}/ipa&quot; rm -rf &quot;${project_path}/ipa&quot;
mkdir -p &quot;${project_path}/ipa&quot; mkdir -p &quot;${project_path}/ipa&quot;
output_path=&quot;${project_path}/ipa&quot; output_path=&quot;${project_path}/ipa&quot;
# project archive path # project archive path
archive_path=&quot;$output_path/hi365_${export_method}_${now}.xcarchive&quot; archive_path=&quot;$output_path/hi365_${export_method}_${now}.xcarchive&quot;
# ipa export path # ipa export path
ipa_path=&quot;$output_path/hi365_${BUILD_TYPE}_${BUILD_BRANCH}_${BUILD_REPOSITORY}_${now}.ipa&quot; ipa_path=&quot;$output_path/hi365_${BUILD_TYPE}_${BUILD_BRANCH}_${BUILD_REPOSITORY}_${now}.ipa&quot;
# ipa name # ipa name
ipa_name=&quot;Hi365_${BUILD_TYPE}_${BUILD_BRANCH}_${now}.ipa&quot; ipa_name=&quot;Hi365_${BUILD_TYPE}_${BUILD_BRANCH}_${now}.ipa&quot;
commit_msg=&quot;$1&quot; commit_msg=&quot;$1&quot;
# Show settings
# show env settings
echo &quot;===workspace path: ${workspace_path}===&quot; echo &quot;===workspace path: ${workspace_path}===&quot;
echo &quot;===archive path: ${archive_path}===&quot; echo &quot;===archive path: ${archive_path}===&quot;
echo &quot;===ipa path: ${ipa_path}===&quot; echo &quot;===ipa path: ${ipa_path}===&quot;
echo &quot;===export method: ${export_method}===&quot; echo &quot;===export method: ${export_method}===&quot;
echo &quot;===commit msg: $1===&quot; echo &quot;===commit msg: $1===&quot;
# Clean build
# Clean build and deploy
fastlane gym --scheme ${scheme} --clean --configuration ${configuration} --archive_path ${archive_path} --export_method ${export_method} --output_directory ${output_path} --output_name ${ipa_name} 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} != &quot;app-store&quot; ] if [ ${export_method} != &quot;app-store&quot; ]
then then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment