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

20180082: Job [Hi365_iOS] configuration updated

Change performed by ³¯¾_¶§
parent 992c758f
......@@ -70,7 +70,7 @@ current_date=$(date +"%Y%m%d")
app_version=$(grep 'version:' ${project_path}/pubspec.yaml | cut -d ' ' -f2)
git_short_hash=$(echo ${GIT_COMMIT}|cut -c1-8)
git_short_hash=$(git rev-parse --short HEAD)
scheme="Runner"
......@@ -100,7 +100,7 @@ output_path="${project_path}/ipa"
archive_path="$output_path/hi365_${export_method}_${now}.xcarchive"
# ipa export path
ipa_path="$output_path/hi365_${app_version}.ipa"
ipa_path="$output_path/Hi365_SIT_${current_date}_${git_short_hash}.ipa"
# ipa name
ipa_name="Hi365_SIT_${current_date}_${git_short_hash}.ipa"
......@@ -117,7 +117,8 @@ echo "===commit msg: $1==="
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"
echo "Deploy to IPA repository"
scp -i ~/jenkins/jenkins ${ipa_path} appuploader@10.57.117.135:~/app/Hi365/${ipa_name}_${VERSION}
fi</command>
</hudson.tasks.Shell>
</builders>
......
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