LoginSignup
8
8

More than 5 years have passed since last update.

MacにJenkinsをインストールして、iTunes Connectから日時レポートを取得してDropboxフォルダーにコピーする

Last updated at Posted at 2013-12-13

初めてJenkinsというものを触ってみたのでメモ。
このやり方でいいのか分かりません。。

homebrewをインストール

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

jenkinsをインストール

$ brew install jenkins

jenkinsでjobを作成する

ご自由に。

AppleからJAVAプログラムをダウンロードしてくる

【公式Doc】http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf
この12Pくらいに「autoingestion.zip」があるのでダウンロードする

作成したjobのワークスペースに上記のzipの中身を展開する

zipの中のautoingestion.propertiesにiTunesConnectのID、PASSを設定する

jenkinsで以下のシェルを実行する

REPORT_DATE=`date -v-2d +%Y%m%d`

echo $REPORT_DATE

java Autoingestion autoingestion.properties <ベンダーID> Sales Daily Summary $REPORT_DATE

gunzip -f S_D_<ベンダーID>_$REPORT_DATE.txt.gz

mv -f S_D_<ベンダーID>_$REPORT_DATE.txt report_$REPORT_DATE.txt

mv report_$REPORT_DATE.txt <Dropboxのパス>

スケジュールで毎日12時に設定する

crontab
http://ja.wikipedia.org/wiki/Crontab

0 12 * * *
8
8
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
8
8