jenkins 构建ios 项目完整版(项目)
#!/bin/sh
git checkout ${branch}
#cp ../initpod.sh .
#sh initpod.sh
pwd
cp ../debug.sh .
cp ../ExportOptions.plist .
cp ../copyfile.sh .
chmod +x debug.sh
rm -rf Podfile.lock
rm -rf Pods
rm -rf baimei.xcworkspace
source ~/.profile
/Users/baimei/.rbenv/versions/3.2.2/bin/pod install
sh copyfile.sh
echo "----------------"
pwd
sh debug.sh
ls -al /Users/Shared/jenkins/workspace/IOS_baimei/Pods/Target\ Support\ Files/Pods-baimei/
# 上传到 蒲公英:
sh ../pgyer_upload.sh -k ********* Package/ipa/baimei.ipa/baimei.ipa
ipa_bac_path=/Users/Shared/ipa_bac/$(date +%Y-%m)/$(date +%Y-%m-%d-%H-%M)
mkdir -p ${ipa_bac_path}
mv Package ${ipa_bac_path}