This documentation is for a release that is no longer maintained
See documentation for the latest supported version.Chapter 1. Configuring Bitbucket webhooks to enable automated pipeline triggers
When you use Bitbucket as your repository host, you must set up webhooks in Bitbucket cloud to automatically trigger pipeline runs in RHDH upon code updates. This integration ensures that your pipeline is always in sync with your code changes.
Prerequisites
- You must have integrated Bitbucket during the RHTAP install process.
You have a source repository. To locate your application’s source code:
- On the RHDH platform, navigate to the Catalog, select an appropriate application where Bitbucket is configured as the repository host.
- Go to the Overview tab and select View Source to open the repository where your application’s source code is housed.
-
You must have a Webhook URL. You can find these credentials in your
~/install_values.txtfile.
Procedure
- Navigate to your Bitbucket source repository.
- Go to Repository settings > Webhooks, and select Add webhook.
- In the Title field, enter an appropriate title.
- In the URL field, enter the webhook URL.
. In the Trigger section:
- Select Push.
- Select Merged.
- Select Save.
Verification
- Make a code change in your Bitbucket repository and push the changes.
- Navigate to the CI tab in RHDH.
- Verify that a pipeline run is triggered after your code update.
Revised on 2024-12-13 16:47:37 UTC