1
0

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でビルドしたapkをslackにアップロードする

Posted at
  1. https://追加したいワークスペース.slack.com/apps を開いて bots で検索してbotを作る
  2. apiトークンをコピー
  3. ビルドスクリプトに次を追加する
bash
curl -F file=@app/build/outputs/hogehoge/your_app.apk \
       -F "initial_comment=your_message" -F channels=your_channel \
       -H "Authorization: Bearer xoxb-xxx-xxx-xxx" \
       https://slack.com/api/files.upload

で、実行するとこうなる

画像です

よかったね

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?