{"_id":"590a04f4ed80861900cbc765","user":"55b2d5626862a10d00887af9","category":{"_id":"590a04f3ed80861900cbc73e","project":"55b2d5baa74a380d00e290c4","version":"590a04f2ed80861900cbc737","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-14T01:14:16.514Z","from_sync":false,"order":6,"slug":"webhooks","title":"Webhooks"},"parentDoc":null,"project":"55b2d5baa74a380d00e290c4","__v":0,"version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-12T19:33:23.972Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"A webhook notifies buddybuild of code changes you make to your repo. Whenever a new change is pushed, buddybuild will automatically kick off a new build - ensuring you have up-to-date build status and your testers have the very latest builds.\n\nLet's get started!\n\nOn the Builds page, in the red banner at the top of the page, click on **Resolve this issue.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/77cf966-Webhooks_-_resolve_banner.png\",\n        \"Webhooks - resolve banner.png\",\n        1500,\n        298,\n        \"#f8403f\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nIn the dialog box that appears, **select and copy the webhook URL.** This URL is specific to your app and will be used to identify your app when sending webhooks from Bitbucket.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/02a0d46-Webhooks_-_modal.png\",\n        \"Webhooks - modal.png\",\n        1500,\n        838,\n        \"#535663\"\n      ]\n    }\n  ]\n}\n[/block]\nNavigate to your Bitbucket repository. In the left navigation, select **Settings.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/PSYn7M6tTPSP6tAk5mhw_Webhook%20URL%20Bitbucket%201.png\",\n        \"Webhook URL Bitbucket 1.png\",\n        \"3000\",\n        \"1188\",\n        \"#ec7454\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nSelect **Webhooks**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/b1E8lcRQT6O7fSkdyiFX_Webhook%20URL%20Bitbucket%202.png\",\n        \"Webhook URL Bitbucket 2.png\",\n        \"3000\",\n        \"1188\",\n        \"#4374a3\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNext, select **Add webhook.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/5i6pxURgOyGTmWFCJLpA_Webhook%20URL%20Bitbucket%203.png\",\n        \"Webhook URL Bitbucket 3.png\",\n        \"3000\",\n        \"1188\",\n        \"#426180\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nIn the **Title** field, enter **Buddybuild** and paste the URL you first copied into the **URL** field.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/M1snZ7laSEiQY2BsFxfz_Webhook%20URL%20Bitbucket%204.png\",\n        \"Webhook URL Bitbucket 4.png\",\n        \"3000\",\n        \"1188\",\n        \"#44607c\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nSelect **choose from a full list of triggers.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/v36gCmKTJePCtc0qBGjr_Webhook%20URL%20Bitbucket%205.png\",\n        \"Webhook URL Bitbucket 5.png\",\n        \"3000\",\n        \"1188\",\n        \"#c5a249\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nOnce that expands, select **Push, Created, Updated, Merged, Declined,** and click **Save.** You're now done!\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/iIDspGBGTEawwlyWnn0A_Bitbucket%20-%20Webhook%20URL%20-%206.png\",\n        \"Bitbucket - Webhook URL - 6.png\",\n        \"3000\",\n        \"1760\",\n        \"#394e64\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"adding-a-bitbucket-webhook","type":"basic","title":"Adding a Bitbucket Webhook"}

Adding a Bitbucket Webhook


A webhook notifies buddybuild of code changes you make to your repo. Whenever a new change is pushed, buddybuild will automatically kick off a new build - ensuring you have up-to-date build status and your testers have the very latest builds. Let's get started! On the Builds page, in the red banner at the top of the page, click on **Resolve this issue.** [block:image] { "images": [ { "image": [ "https://files.readme.io/77cf966-Webhooks_-_resolve_banner.png", "Webhooks - resolve banner.png", 1500, 298, "#f8403f" ], "sizing": "full" } ] } [/block] In the dialog box that appears, **select and copy the webhook URL.** This URL is specific to your app and will be used to identify your app when sending webhooks from Bitbucket. [block:image] { "images": [ { "image": [ "https://files.readme.io/02a0d46-Webhooks_-_modal.png", "Webhooks - modal.png", 1500, 838, "#535663" ] } ] } [/block] Navigate to your Bitbucket repository. In the left navigation, select **Settings.** [block:image] { "images": [ { "image": [ "https://files.readme.io/PSYn7M6tTPSP6tAk5mhw_Webhook%20URL%20Bitbucket%201.png", "Webhook URL Bitbucket 1.png", "3000", "1188", "#ec7454", "" ], "sizing": "full" } ] } [/block] Select **Webhooks**. [block:image] { "images": [ { "image": [ "https://files.readme.io/b1E8lcRQT6O7fSkdyiFX_Webhook%20URL%20Bitbucket%202.png", "Webhook URL Bitbucket 2.png", "3000", "1188", "#4374a3", "" ], "sizing": "full" } ] } [/block] Next, select **Add webhook.** [block:image] { "images": [ { "image": [ "https://files.readme.io/5i6pxURgOyGTmWFCJLpA_Webhook%20URL%20Bitbucket%203.png", "Webhook URL Bitbucket 3.png", "3000", "1188", "#426180", "" ], "sizing": "full" } ] } [/block] In the **Title** field, enter **Buddybuild** and paste the URL you first copied into the **URL** field. [block:image] { "images": [ { "image": [ "https://files.readme.io/M1snZ7laSEiQY2BsFxfz_Webhook%20URL%20Bitbucket%204.png", "Webhook URL Bitbucket 4.png", "3000", "1188", "#44607c", "" ], "sizing": "full" } ] } [/block] Select **choose from a full list of triggers.** [block:image] { "images": [ { "image": [ "https://files.readme.io/v36gCmKTJePCtc0qBGjr_Webhook%20URL%20Bitbucket%205.png", "Webhook URL Bitbucket 5.png", "3000", "1188", "#c5a249", "" ], "sizing": "full" } ] } [/block] Once that expands, select **Push, Created, Updated, Merged, Declined,** and click **Save.** You're now done! [block:image] { "images": [ { "image": [ "https://files.readme.io/iIDspGBGTEawwlyWnn0A_Bitbucket%20-%20Webhook%20URL%20-%206.png", "Bitbucket - Webhook URL - 6.png", "3000", "1760", "#394e64", "" ], "sizing": "full" } ] } [/block]