Adding an Assembla webhook
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.
-
Open your project on Bitrise with a user that has the Admin role on the project.
-
On the main page of the project, click on the Project settings button.
-
On the left, select Integrations and then the Webhooks tab.
-
Find the Incoming webhooks section and open Manual webhooks.
-
Select Assembla from the dropdown menu.
-
Copy the webhook URL.
-
Open your space on assembla.com or your organisation’s assembla domain.
-
Go to the Webhooks section of the space.
-
Select Create New Webhook.
-
Set Title to Bitrise Webhook.
-
Specify the
bitrise-webhooks
URL. (.../h/assembla/BITRISE-APP-SLUG/BITRISE-APP-API-TOKEN
) in the External url field. -
Select
application/json
in the Content type field. -
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}"}}
-
Select Code commits and/or Git Push in the Post updates about: section.
-
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).