From Bitbucket events
thatSuppose users want to trigger a pipeline or release on successful Pull request merge on Bitbucket or when a code is pushed to a particular branch, they can create a webhook using the webhook type as Bitbucket.
Steps to create a Bitbucket Webhook for release
Pre-requisites:
An active Bitbucket account with repositories needs to have the PAT which can be entered while creating Bitbucket integrations
An Active cluster
A Release that has been created from the Release Templates section
Steps
On click of the create webhook button, a modal window appears in which we can enter the details for webhook creation
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FDwQOp6i8F8cfFQRizcB7%252Fimage-20240418-044646.png%3Falt%3Dmedia%26token%3D81a45b95-5617-4ef6-a2e6-b2a346d7cb74&width=768&dpr=4&quality=100&sign=567bcb53&sv=1)
Now we need to select the Webhook Type as Bitbucket from the Webhook Type dropdown
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FBNHhbacRIxgtbFNGQhCZ%252Fimage-20240418-044734.png%3Falt%3Dmedia%26token%3Dde5d8527-cb0b-4dca-b80b-02505bb3a646&width=768&dpr=4&quality=100&sign=93b07942&sv=1)
After selecting the webhook type as Bitbucket, a dropdown will be shown to select the repository for which the webhook needs to be created
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FuvqNFrrygDLKtA1ADpaW%252Fimage-20240418-044810.png%3Falt%3Dmedia%26token%3Dd3b35349-030a-46f4-8cce-be4a7dd3d4f6&width=768&dpr=4&quality=100&sign=9a4801e9&sv=1)
Once the repository has been selected, users have the option to select the event for which they want the pipeline or release to be triggered Ozone offers 2 events for which webhooks can be created:
Push branch - whenever code is pushed to the specified branch the webhook is triggered
Pull request - whenever a pull request is merged at that point the webhook will be triggered
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FKwTQoQo3raMh3eDp7Y9R%252Fimage-20240418-044924.png%3Falt%3Dmedia%26token%3Db06c2605-c626-46fd-b261-878e0f8a60a9&width=768&dpr=4&quality=100&sign=86340cf0&sv=1)
After selecting the event, users are provided an option to select the branch for the repository for which they want the webhook to be triggered
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FKmBVplHBKbNuBxEE2wIZ%252Fimage-20240418-044956.png%3Falt%3Dmedia%26token%3D959ad84d-afcc-4a07-a0ff-b1d066fb0d00&width=768&dpr=4&quality=100&sign=bfe18499&sv=1)
since the branch has been selected, the next option which is provided for the users to select is whether they want to trigger a release or a pipeline on the successful happening of the event that they had selected
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FTw52KX8NvsKAK73i0tVJ%252Fimage-20240418-045036.png%3Falt%3Dmedia%26token%3D92355d36-420f-441e-86e0-41ba4b0fc5e5&width=768&dpr=4&quality=100&sign=a49e10e0&sv=1)
Here we will select the option of Release
After this users can select the release which they want to be triggered
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FA6phAtZfxTBywnPXxKLP%252Fimage-20240418-045114.png%3Falt%3Dmedia%26token%3Dc6059cff-587d-49c0-92d9-bf8f0838a2ba&width=768&dpr=4&quality=100&sign=81409eb7&sv=1)
Once every option have been selected the map parameters option will be enabled and users can click on it to move to the next step
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FqacmaC8mLKj4LiMTVdfj%252Fimage-20240418-045156.png%3Falt%3Dmedia%26token%3Ddcef5470-2206-49ff-8021-5cd8e2b5f855&width=768&dpr=4&quality=100&sign=4a5b41c1&sv=1)
After going to the second step users can choose the input run parameters, once all these options have been selected, users can click on the save button to create the webhook
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FFKA3kvnMeADhjFT5QlS7%252Fimage-20240418-045253.png%3Falt%3Dmedia%26token%3D8f6b79e1-2e26-4281-8fa6-11db71ccb97a&width=768&dpr=4&quality=100&sign=5b7cf8a&sv=1)
Once the webhook has been created, it will be shown in the tabular list view
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F9ArAsTHOYLCI39aHROfU%252Fimage-20240418-045326.png%3Falt%3Dmedia%26token%3De26a1a2e-d7cc-4d4e-8dfe-da718eec660d&width=768&dpr=4&quality=100&sign=f8d5c089&sv=1)
The newly created webhooks are shown at the top of the list, as we can see the webhook type as Bitbucket, and the last triggered time is also shown. Users can also enable/disable the webhook from the toggle window, as well as click on the edit icon to edit the webhook.
Steps to create webhook for pipeline
Pre-requisites:
An Active cluster
A microservice
Follow the same steps until Step 5 of Creating Webhooks for release Steps:
Once the repository name and the branches have been selected select the trigger type as Pipeline
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FB39ioEhAbDwnGCR2XnSD%252Fimage-20240418-060833.png%3Falt%3Dmedia%26token%3D2d0ab39b-8420-416b-b33d-97d7c296a70b&width=768&dpr=4&quality=100&sign=bb940e4f&sv=1)
Once the Trigger type has been selected, now select the pipeline that needs to be triggered
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252Fg8bi3vKaF0MBY5H7pALX%252Fimage-20240418-061926.png%3Falt%3Dmedia%26token%3D91ff79a9-99d3-44f3-af67-bb96cf9b4b27&width=768&dpr=4&quality=100&sign=9e718e76&sv=1)
After selecting the pipeline, select the environment in which the webhook needs to be created Remember to select the environment the same in which the cluster has been created
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F4G8sjaiEfFxolUJqeumV%252Fimage-20240418-061947.png%3Falt%3Dmedia%26token%3Dc9ba0a40-70fd-4f8b-a211-cd7767eb7859&width=768&dpr=4&quality=100&sign=900869d4&sv=1)
Once the cluster has been selected, select the microservice
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FHIeuRTgrQ5TvdUwIwTQl%252Fimage-20240418-062004.png%3Falt%3Dmedia%26token%3D7ff75dbf-cd67-4f69-9d06-4adbf60a0b3b&width=768&dpr=4&quality=100&sign=5976745d&sv=1)
Once the cluster has been selected, select the microservice
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FarS7f0vRN8BteTFNFCIM%252Fimage-20240418-062044.png%3Falt%3Dmedia%26token%3D295a2def-b3f5-408d-ba71-55713b2bdfe1&width=768&dpr=4&quality=100&sign=8f7f6295&sv=1)
After selecting the microservice, users can move to the Map parameters step, to select the run parameters for the pipeline
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252Fg2KlIJicby41nwzjPD3X%252Fimage-20240418-062123.png%3Falt%3Dmedia%26token%3D9140a456-0154-4b19-b478-493912dfe0e6&width=768&dpr=4&quality=100&sign=19ea9ff6&sv=1)
In Map parameters, users can select all the options as they desire.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FHrZlu5xoWksCZ5bVnzTf%252Fimage-20240418-085247.png%3Falt%3Dmedia%26token%3Dfea68aa7-6c02-4264-9a2f-ca8e29f0f8d2&width=768&dpr=4&quality=100&sign=ed6acc68&sv=1)
Once all this is done, users can click on the Save button to create the webhook for the pipeline.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252Fk1mDXbBAwZYxx1ZwxbaI%252Fimage-20240418-085333.png%3Falt%3Dmedia%26token%3Dbbf88896-34d2-4d93-bd2d-232a7bcb864a&width=768&dpr=4&quality=100&sign=2e9f94a5&sv=1)
The created webhook will be shown in the webhook list view
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FzmAX0tGUHm0nWfWOgE6V%252Fimage-20240418-101942.png%3Falt%3Dmedia%26token%3D7f02d20e-cda2-498e-80f0-d416d504c545&width=768&dpr=4&quality=100&sign=23d91958&sv=1)
The last triggered time is also mentioned, along with this the webhook type is mentioned as Bitbucket. Users can click on the edit button to edit the webhook, click on the toggle button to enable/disable the webhook.
Last updated