Jenkins shell 指令,不需要配置xcode插件
Posted Eric博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jenkins shell 指令,不需要配置xcode插件相关的知识,希望对你有一定的参考价值。
echo 'start build JenkinsTest'
pwd
whoami
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
#工程环境路径
workspace_path=./JenkinsTest/
#项目名称
project_name="JenkinsTest"
#echo"1.----update----"
#pod install --verbose --no-repo-update
#echo "2.clean...................."
xcodebuild clean
rm -rf archive
rm -f $project_name.ipa
#echo "3.dabao...................."
sed -i '' 's/\\app-store\\<\\/string\\>/\\development\\<\\/string\\>/' archieveOpt.plist
sed -i '' 's/ProvisioningStyle = Automatic;/ProvisioningStyle = Automatic;/' $project_name.xcodeproj/project.pbxproj
#echo "4.shengcheng app"
xcodebuild archive -workspace $project_name.xcworkspace -scheme $project_name -configuration Release -archivePath release-iphones/$project_name.xcarchive
#echo "5.shengcheng ipa"
xcodebuild -exportArchive -exportOptionsPlist archieveOpt.plist -archivePath release-iphones/$project_name.xcarchive -exportPath ./release-iphones/ -configuration Release
以上是关于Jenkins shell 指令,不需要配置xcode插件的主要内容,如果未能解决你的问题,请参考以下文章
大坑,jenkins 配置publish over ssh bash 插件,远程部署,无法执行shell脚本
软件测试实战教程:Appium之与Jenkins集成发送测试报告