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
7a5d0139
Commit
7a5d0139
authored
Dec 18, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20180082: Job [Deploy_Hi365_IOS_SIT] configuration updated
Change performed by ³¯¾_¶§
parent
be374d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
40 deletions
+10
-40
jobs/Deploy_Hi365_IOS_SIT/config.xml
jobs/Deploy_Hi365_IOS_SIT/config.xml
+10
-40
No files found.
jobs/Deploy_Hi365_IOS_SIT/config.xml
View file @
7a5d0139
...
...
@@ -63,18 +63,10 @@
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
# Choose build dart by environment
default_doc=
"
main_sit.dart
"
export_method=
"
app-store
"
version_number=$Version_Number
<command>
export FLUTTER_ROOT=
"
/Users/jenkins/flutter
"
export FLUTTER_ROOT=
"
/Users/jenkins/flutter
"
# Set the variable
project_path=$(pwd)
flutter build ios --release -t lib/${default_doc} --no-codesign
cd $project_path/ios
now=$(date +
"
%Y_%m_%d_%H:%M
"
)
...
...
@@ -85,44 +77,22 @@ app_version=$(grep 'version:' ${project_path}/pubspec.yaml | cut -d &a
git_short_hash=$(git rev-parse --short HEAD)
scheme=
"
Runner
"
# package configuration for fastlane
configuration=
"
Release
"
# 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 name
ipa_name=
"
Hi365_SIT_${current_date}_${version_number}_${git_short_hash}.ipa
"
# ipa export path
ipa_path=
"
$output_path/${ipa_name}
"
# show env 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===
"
ipa_full_path=
"
${$project_path}/ios/Hi365_SIT_${current_date}_${version_number}_${git_short_hash}.ipa
"
# Temporarily change xcode versino for fastlane
fastlane run xcversion version:
"
11
"
# Unlock keychain
security unlock-keychain -p
"
Yonglinit123
"
~/Library/Keychains/login.keychain
# 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}
# build ips
fastlane sit
# rename ipa to a identified one
mv Runner.ipa ${ipa_name}
# deploy
echo
"
Deploy to IPA repository
"
scp -i ~/jenkins/jenkins ${ipa_path} appuploader@10.57.117.135:~/app/Hi365/${ipa_name}
</command>
scp -i ~/jenkins/jenkins ${ipa_
full_
path} appuploader@10.57.117.135:~/app/Hi365/${ipa_name}
</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