51Testing软件测试论坛

标题: Mac下用Jenkins自动打包成.ipa发布到蒲公英 [打印本页]

作者: 小文0111    时间: 2019-3-14 17:04
标题: Mac下用Jenkins自动打包成.ipa发布到蒲公英

1、在构建步骤中选择=》Execute shell

2.在Command输入:

cd $WORKSPACE

rm -rf /Users/zhujunjie/Library/Developer/Xcode/DerivedData/Build/Products/Release-iphoneos/Again_Dis.app

rm -rf Myipa

mkdir Myipa

xcodebuild clean

xcodebuild -workspace OneMore.xcworkspace   -scheme Again_Dis  

xcrun -sdk iphoneos PackageApplication -v /Users/zhujunjie/Library/Developer/Xcode/DerivedData/Build/Products/Release-iphoneos/Again_Dis.app -o $WORKSPACE/Myipa/Again_Dis.ipa

curl -F "file=@$WORKSPACE/Myipa/Again_Dis.ipa" -F "uKey=edbe27bdb6cb4c2fec0f56c2ed7c0900" -F "_api_key=5f15443af19ee60e44333327b993f1d6" http://www.pgyer.com/apiv1/app/upload







欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2