10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jenkins から Ikachan 経由で IRC にテスト結果を通知する (色つき)

Posted at

そういうのを楽にできるスクリプトを作った。

使い方

  1. 新しい job を作る (名前は ikachan とか適当に)
  2. 図1 を参考に parameterized build を設定する (パラメータ詳細は README 参照)
  3. ビルド手順はシェルの実行で curl -s https://raw.github.com/kyanny/jenkins-ikachan/v1.0/ikachan.rb | ruby とでもする
  4. テストを実行してる job から Trigger parameterized build で ikachan job をパラメータつきで実行 ($JOB_NAME と $BUILD_URL を渡すこと)
  5. 以上

ikachan.rb がやってること

  1. 呼び出し元の job の成功失敗ステータスを Jenkins の XML API から取得する
  2. IRC 上で色がつくように加工する
  3. Ikachan に POST する
10
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
10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?