6
2

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.

Bitriseで結果をChatworkに通知する

Last updated at Posted at 2019-07-02

BitriseにはChatworkのIntegrationが無いため、
Script をWorkflowに追加してChatwork APIを呼び出すことにより、結果を通知することができます。:thumbsup:

スクリプト

# 例) iOSアプリのビルド結果を通知

if [ -n "${BITRISE_IPA_PATH}" -a -f ${BITRISE_IPA_PATH} ]; then
	RESULT="成功時のメッセージ"
else
	RESULT="失敗時のメッセージ"
fi

curl -X POST -H "X-ChatWorkToken:${CHATWORK_TOKEN}" -d "body=${RESULT}" "https://api.chatwork.com/v2/rooms/${CHATWORK_ROOM_ID}/messages"

BITRISE_IPA_PATH
Xcode Archive & Export for iOSによってエクスポートされるipaのパスです。

CHATWORK_TOKEN
Chatwork APIトークンです。
Secret Environment Variablesに設定しましょう。

CHATWORK_ROOM_ID
通知するチャットグループのChatworkのroom IDです。
Secret Environment Variablesに設定しましょう。

6
2
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
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?