Skip to main content

Adding an Assembla webhook

Abstract

You can specify webhooks on Assembla so that Bitrise automatically triggers a build of your app whenever you perform a specified action, such as a code push or a pull request.

You can set up webhooks so that Bitrise automatically triggers a build of your app whenever you perform a specified action, such as a code push or a pull request. For Assembla, you only need to add your bitrise-webhooks URL to your Assembla space.

Admin access only

Only users with the role of admin on the app's team can access all functions of the App Settings page of an app.

  1. Open your app on Bitrise.

  2. Click on App Settings.

  3. On the left, select Integrations.

  4. Click Set up webhooks manually.

  5. In the pop-up window, select Assembla from the dropdown menu.

    apps-webhooks-select.png
  6. Copy the webhook URL.

  7. Open your space on assembla.com or your organisation’s assembla domain.

  8. Go to the Webhooks section of the space.

  9. Select Create New Webhook.

  10. Set Title to Bitrise Webhook.

  11. Specify the bitrise-webhooks URL. (.../h/assembla/BITRISE-APP-SLUG/BITRISE-APP-API-TOKEN) in the External url field.

  12. Select application/json in the Content type field.

  13. Paste the following code to Content:

                            {"assembla": {"space": "%{space}", "action": "%{action}", "object": "%{object}"}, "message": {"title": "%{title}", "body": "%{body}", "author": "%{author}"}, "git": {"repository_suffix": "%{repository_suffix}", "repository_url": "%{repository_url}", "branch": "%{branch}", "commit_id": "%{commit_id}"}}
    
  14. Select Code commits and/or Git Push in the Post updates about: section.

  15. Click Add.

That’s all! The next time you push code a build will be triggered (if you have Trigger mapping defined for the event(s) on Bitrise).