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

20180083: Job [Hi365_SIT_Deploy_iOS] hierarchy renamed from [Hi365_iOS]

to [Hi365_SIT_Deploy_iOS]

Change performed by §õº~?
parent afd10f90
......@@ -899,8 +899,8 @@
<string>Deploy_Hi365_OAuth_Authorization_Develop</string>
<string>Deploy_Hi365_OAuth_Client_Develop</string>
<string>Deploy_Hi365_OAuth_Resource_Develop</string>
<string>Hi365_iOS</string>
<string>Hi365_SIT_Deploy_Android</string>
<string>Hi365_SIT_Deploy_iOS</string>
</jobNames>
<jobFilters/>
<columns>
......
<?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 +&quot;%Y_%m_%d_%H:%M&quot;)
current_date=$(date +&quot;%Y%m%d&quot;)
app_version=$(grep &apos;version:&apos; ${project_path}/pubspec.yaml | cut -d &apos; &apos; -f2)
git_short_hash=$(git rev-parse --short HEAD)
scheme=&quot;Runner&quot;
# package configuration for fastlane
configuration=${BUILD_TYPE}
# export methods supports app-store, package, ad-hoc, enterprise, development and developer-id.
if [ $BUILD_TYPE == &quot;Release&quot; ]
then
export_method=&quot;app-store&quot;
elif [ $BUILD_TYPE == &quot;AdHoc&quot; ]
then
export_method=&quot;ad-hoc&quot;
else
export_method=&quot;development&quot;
fi
# iOS project path
workspace_path=&quot;${project_path}/ios/Runner.xcodeproj&quot;
# ipa export folder
rm -rf &quot;${project_path}/ipa&quot;
mkdir -p &quot;${project_path}/ipa&quot;
output_path=&quot;${project_path}/ipa&quot;
# project archive path
archive_path=&quot;$output_path/hi365_${export_method}_${now}.xcarchive&quot;
# ipa name
ipa_name=&quot;Hi365_SIT_${current_date}_${git_short_hash}.ipa&quot;
# ipa export path
ipa_path=&quot;$output_path/${ipa_name}&quot;
commit_msg=&quot;$1&quot;
# show env settings
echo &quot;===workspace path: ${workspace_path}===&quot;
echo &quot;===archive path: ${archive_path}===&quot;
echo &quot;===ipa path: ${ipa_path}===&quot;
echo &quot;===export method: ${export_method}===&quot;
echo &quot;===commit msg: $1===&quot;
# 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} != &quot;app-store&quot; ]
then
echo &quot;Deploy to IPA repository&quot;
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
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