{"_id":"590a04f4ed80861900cbc764","project":"55b2d5baa74a380d00e290c4","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"},"user":"55b2d5626862a10d00887af9","__v":0,"parentDoc":null,"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":"2016-03-15T16:54:51.186Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"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/a05ea44-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 Beanstalk.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/bb05648-Webhooks_-_modal.png\",\n        \"Webhooks - modal.png\",\n        1500,\n        838,\n        \"#535663\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNavigate to your Beanstalk repository. In the top navigation, select **Settings.** Then select **Integration**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/pIB3oxIlQuOAIYvMr0Mn_beanstalk-integ.png\",\n        \"beanstalk-integ.png\",\n        \"1276\",\n        \"145\",\n        \"#e3f3cd\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nA list of integrations is displayed. Select the integration button that is labelled **Modular Webhooks**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/IuG8oIB8R72jQQCf0uPM_2beanstalk-modular-webhooks.png\",\n        \"2beanstalk-modular-webhooks.png\",\n        \"2558\",\n        \"1156\",\n        \"\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNext, select the **Add a webhook** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/5RccSIjbQ0ad1UQvOoC9_3beanstalk-settings-integration.png\",\n        \"3beanstalk-settings-integration.png\",\n        \"2554\",\n        \"1158\",\n        \"#bc9c47\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nIn the webhook dialog that appears, perform the following steps:\n  * Name the webhook *buddybuild*.\n  * Paste the buddybuild webhook URL you first copied into the **URL** field.\n  * Select the *push*, *create_branch*, *delete_branch*, *create_tag* and *delete_tag* webhook triggers.\n  * Then click **Activate** \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/r8sm6bJbQciY5jSpHhtb_4beanstalk-paste-hook.png\",\n        \"4beanstalk-paste-hook.png\",\n        \"798\",\n        \"851\",\n        \"#476583\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nFinally, click **Finish** to complete the Beanstalk webhook setup.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/luTsxo8eReAu8pV1msz3_5beanstalk-webhook-done.png\",\n        \"5beanstalk-webhook-done.png\",\n        \"1114\",\n        \"610\",\n        \"#3d8764\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"adding-a-beanstalk-webhook","type":"basic","title":"Adding a Beanstalk Webhook"}

Adding a Beanstalk 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/a05ea44-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 Beanstalk. [block:image] { "images": [ { "image": [ "https://files.readme.io/bb05648-Webhooks_-_modal.png", "Webhooks - modal.png", 1500, 838, "#535663" ], "sizing": "full" } ] } [/block] Navigate to your Beanstalk repository. In the top navigation, select **Settings.** Then select **Integration**. [block:image] { "images": [ { "image": [ "https://files.readme.io/pIB3oxIlQuOAIYvMr0Mn_beanstalk-integ.png", "beanstalk-integ.png", "1276", "145", "#e3f3cd", "" ] } ] } [/block] A list of integrations is displayed. Select the integration button that is labelled **Modular Webhooks**. [block:image] { "images": [ { "image": [ "https://files.readme.io/IuG8oIB8R72jQQCf0uPM_2beanstalk-modular-webhooks.png", "2beanstalk-modular-webhooks.png", "2558", "1156", "", "" ], "sizing": "full" } ] } [/block] Next, select the **Add a webhook** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/5RccSIjbQ0ad1UQvOoC9_3beanstalk-settings-integration.png", "3beanstalk-settings-integration.png", "2554", "1158", "#bc9c47", "" ], "sizing": "full" } ] } [/block] In the webhook dialog that appears, perform the following steps: * Name the webhook *buddybuild*. * Paste the buddybuild webhook URL you first copied into the **URL** field. * Select the *push*, *create_branch*, *delete_branch*, *create_tag* and *delete_tag* webhook triggers. * Then click **Activate** [block:image] { "images": [ { "image": [ "https://files.readme.io/r8sm6bJbQciY5jSpHhtb_4beanstalk-paste-hook.png", "4beanstalk-paste-hook.png", "798", "851", "#476583", "" ], "sizing": "full" } ] } [/block] Finally, click **Finish** to complete the Beanstalk webhook setup. [block:image] { "images": [ { "image": [ "https://files.readme.io/luTsxo8eReAu8pV1msz3_5beanstalk-webhook-done.png", "5beanstalk-webhook-done.png", "1114", "610", "#3d8764", "" ], "sizing": "full" } ] } [/block]