LoginSignup
9
9

More than 5 years have passed since last update.

OTA配布用Jenkinsジョブの作成

Last updated at Posted at 2015-06-28

前提

  1. Xcodeインストール済み
  2. Homebrewインストール済み
  3. Cocoapods利用

1. Nginx

brew install nginx
証明書作成
openssl req -newkey rsa:4096 -x509 -nodes -out server.crt -keyout server.key -days 3650
mv server.crt server.key /usr/local/etc/nginx
証明書公開
ln -s /usr/local/etc/nginx/server.crt /usr/local/var/www
nginx.conf修正
自動起動(80番ポート)
sudo ln -s /usr/local/opt/nginx/homebrew.mxcl.nginx.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

2. Jenkins

brew install jenkins
plist変更 参照
<string>--httpListenAddress=127.0.0.1</string>削除しないと外部から見れない

3. ジョブ

Xcode Pluginを利用

Pack application and build .ipaにチェック

ota-toolsを利用

Execute shellでplist, htmlを生成してipaと一緒にnginx配下にコピー
※ ota-toolsをGHE上に置いて適宜編集しています

Post-build Actions

.ipa, plist, htmlをアーカイブ

4. 配布

  1. server.crtをiOS端末にインストール
  2. 生成したhtmlからアプリインストール
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9