Skip to main content

BitbucketWebhookを追加する

概要

BitbucketでWebhookを指定して、コードのプッシュやプルリクエストなどの指定されたアクションを実行するたびに、Bitriseがアプリのビルドを自動的にトリガーするようにすることができます。

コードをリポジトリにプッシュするたびにBitriseでビルドを自動的に開始するには、コードホスティングサービスでWebhookを設定して、リポジトリにプッシュしたコードでBitriseのビルドを自動的にトリガーできます。

In addition, you can take advantage of Git Insights if you set up the webhook with the necessary permissions. Git Insights enables you to quantify and optimize Git collaboration. It provides crucial metrics like pull request cycle time and merge frequency.

Webhookは自動または手動で登録できます。このガイドでは、Webhookを手動で登録するプロセスについて説明します。

  1. Bitriseでアプリを開くには、 管理者 アプリチームでの役割

  2. に移動します 設定 タブ。

    app-settings.png
  3. アプリのページの[コード]タブに移動し、 入ってくるWEBHOOK メニューをクリックします 手動でセットアップ

  4. 選択する Bitbucket ドロップダウンメニューから。

  5. ポップアップウィンドウで、ドロップダウンメニューから[BitbucketWebhooks]を選択します。

    apps-webhooks-select.png
  6. 選択したサービスのWebhookURLをコピーします。

  7. Bitbucketリポジトリに移動し、を選択します 設定

    Adding a Bitbucket webhook
  8. 選択する Webhook 左から。

    Adding a Bitbucket webhook
  9. 選択する Webhookを追加する

    Adding a Bitbucket webhook
  10. Bitbucket WebhookURLをBitriseからに貼り付けます URL を追加します 題名

    Adding a Bitbucket webhook
  11. 選択する トリガーの完全なリストから選択します

    Adding a Bitbucket webhook
  12. 選択する リポジトリプッシュプルリクエストが作成されました更新しました トリガー。準備ができたら、 保存する ボタンを押すと、転がる準備ができました!

    • For automatically triggering builds, you just need to select Push from the Repository permissions, and Created and Updated from the Pull Request permissions.

    • For Git Insights, you need everything you need, in addition to the above, Merged and Declined from the Pull Request permissions.

      bitbucket-webhook-settings.png