Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
jenkins
Commits
29b29b40
Commit
29b29b40
authored
Sep 11, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20180082: Job [Hi365_iOS] configuration updated
Change performed by ³¯¾_¶§
parent
df5ebcf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
2 deletions
+42
-2
jobs/Hi365_iOS/config.xml
jobs/Hi365_iOS/config.xml
+42
-2
No files found.
jobs/Hi365_iOS/config.xml
View file @
29b29b40
...
...
@@ -59,8 +59,48 @@
<builders>
<hudson.tasks.Shell>
<command>
# security set-key-partition-list -S apple-tool:,apple: -s -k
"
password
"
~/Library/Keychains/login.keychain-db
# This is step is prerequisite, otherwise it will cause IPA run hangs on blank
flutter build ios --release
</command>
project_path=$(pwd)
flutter build ios
cd $project_path/ios
now=$(date +
"
%Y_%m_%d_%H:%M
"
)
scheme=
"
Runner
"
# package configuration for fastlane
configuration=${BUILD_TYPE}
# export methods supports app-store, package, ad-hoc, enterprise, development, 和developer-id,即xcodebuild的method引數
if [ $BUILD_TYPE ==
"
Release
"
]
then
export_method=
"
app-store
"
elif [ $BUILD_TYPE ==
"
AdHoc
"
]
then
export_method=
"
ad-hoc
"
else
export_method=
"
development
"
fi
# iOS project path
workspace_path=
"
${project_path}/ios/Runner.xcodeproj
"
# ipa export folder
rm -rf
"
${project_path}/ipa
"
mkdir -p
"
${project_path}/ipa
"
output_path=
"
${project_path}/ipa
"
# project archive path
archive_path=
"
$output_path/hi365_${export_method}_${now}.xcarchive
"
# ipa export path
ipa_path=
"
$output_path/hi365_${BUILD_TYPE}_${BUILD_BRANCH}_${BUILD_REPOSITORY}_${now}.ipa
"
# ipa name
ipa_name=
"
Hi365_${BUILD_TYPE}_${BUILD_BRANCH}_${now}.ipa
"
commit_msg=
"
$1
"
# Show settings
echo
"
===workspace path: ${workspace_path}===
"
echo
"
===archive path: ${archive_path}===
"
echo
"
===ipa path: ${ipa_path}===
"
echo
"
===export method: ${export_method}===
"
echo
"
===commit msg: $1===
"
# Clean build
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
"
fi
</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment