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
ef8f0351
Commit
ef8f0351
authored
Sep 12, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20180083: Job [Hi365_SIT_Deploy_iOS] hierarchy renamed from [Hi365_iOS]
to [Hi365_SIT_Deploy_iOS] Change performed by §õº~?
parent
afd10f90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
136 deletions
+1
-136
config.xml
config.xml
+1
-1
jobs/Hi365_iOS/config.xml
jobs/Hi365_iOS/config.xml
+0
-135
No files found.
config.xml
View file @
ef8f0351
...
@@ -899,8 +899,8 @@
...
@@ -899,8 +899,8 @@
<string>
Deploy_Hi365_OAuth_Authorization_Develop
</string>
<string>
Deploy_Hi365_OAuth_Authorization_Develop
</string>
<string>
Deploy_Hi365_OAuth_Client_Develop
</string>
<string>
Deploy_Hi365_OAuth_Client_Develop
</string>
<string>
Deploy_Hi365_OAuth_Resource_Develop
</string>
<string>
Deploy_Hi365_OAuth_Resource_Develop
</string>
<string>
Hi365_iOS
</string>
<string>
Hi365_SIT_Deploy_Android
</string>
<string>
Hi365_SIT_Deploy_Android
</string>
<string>
Hi365_SIT_Deploy_iOS
</string>
</jobNames>
</jobNames>
<jobFilters/>
<jobFilters/>
<columns>
<columns>
...
...
jobs/Hi365_iOS/config.xml
deleted
100644 → 0
View file @
afd10f90
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>
Hi365 iOS IPA Packager
</description>
<keepDependencies>
false
</keepDependencies>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.12"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.ChoiceParameterDefinition>
<name>
BUILD_TYPE
</name>
<description></description>
<choices
class=
"java.util.Arrays$ArrayList"
>
<a
class=
"string-array"
>
<string>
Debug
</string>
<string>
Release
</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
<hudson.model.ChoiceParameterDefinition>
<name>
BUILD_BRANCH
</name>
<description></description>
<choices
class=
"java.util.Arrays$ArrayList"
>
<a
class=
"string-array"
>
<string>
develop
</string>
<string>
master
</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm
class=
"hudson.plugins.git.GitSCM"
plugin=
"git@3.12.0"
>
<configVersion>
2
</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>
https://cm.ylhealth.org/gitlab/YongYue/hi365-app.git/
</url>
<credentialsId>
3485e854-8389-40e8-8c86-b94e94e91904
</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>
*/${BUILD_BRANCH}
</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>
false
</doGenerateSubmoduleConfigurations>
<submoduleCfg
class=
"list"
/>
<extensions/>
</scm>
<assignedNode>
Mac_Node1
</assignedNode>
<canRoam>
false
</canRoam>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>
false
</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
project_path=$(pwd)
flutter build ios
cd $project_path/ios
now=$(date +
"
%Y_%m_%d_%H:%M
"
)
current_date=$(date +
"
%Y%m%d
"
)
app_version=$(grep
'
version:
'
${project_path}/pubspec.yaml | cut -d
'
'
-f2)
git_short_hash=$(git rev-parse --short HEAD)
scheme=
"
Runner
"
# package configuration for fastlane
configuration=${BUILD_TYPE}
# export methods supports app-store, package, ad-hoc, enterprise, development and developer-id.
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 name
ipa_name=
"
Hi365_SIT_${current_date}_${git_short_hash}.ipa
"
# ipa export path
ipa_path=
"
$output_path/${ipa_name}
"
commit_msg=
"
$1
"
# 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===
"
# 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}
if [ ${export_method} !=
"
app-store
"
]
then
echo
"
Deploy to IPA repository
"
scp -i ~/jenkins/jenkins ${ipa_path} appuploader@10.57.117.135:~/app/Hi365/${ipa_name}
fi
</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup
plugin=
"ws-cleanup@0.37"
>
<deleteDirs>
false
</deleteDirs>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
<disableDeferredWipeout>
false
</disableDeferredWipeout>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
</buildWrappers>
</project>
\ No newline at end of file
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