We're launching a new cybersecurity venture! Learn more about Snowbit >

Bitbucket Version Tags Bitbucket Version Tags

Last Updated: Mar. 30, 2022

Coralogix supports integration with Bitbucket webhooks, which can be used to inform Coralogix when a new build has been issued.

Note: This document includes cluster dependent URL’s. Please refer to the following table to select the correct Coralogix Bitbucket Version Tags API endpoint for your Coralogix Portal domain’s extension (.com/.us/.in):

ClusterBitbucket Tags Endpoint
.comhttps://webapi.coralogix.com/api/v1/external/bitbucket/
.ushttps://webapi.coralogix.us/api/v1/external/bitbucket/
.inhttps://webapi.app.coralogix.in/api/v1/external/bitbucket/

Configuration

  1. Log into Bitbucket using your user credentials.
  2. Click your desired Repository to select it.
  3. Click “Repository settings” on the left.
  4. Under General \ Repository details, click “Webhooks”.
  5. Click “Add webhook”.
  6. Add a Title (for example: “Coralogix builds”).
  7. In the URL box, you will enter the link corresponding to the Coralogix Bitbucket Version Tags endpoint for your cluster (as described in the note above).

URL Parameters

  • API Endpoint.
  • Alerts, Rules, and Tags API Key.
    • You can get this key from: “https://<YourCoralogixPortalHere>/#/integration/apikey
    • or by navigating to: Data Flow --> API Keys --> Alerts, Rules and Tags API Key)
Coralogix Alerts API key
  • Application Name:
    • Enter your desired Application name. Please use a name corresponding to your logs “Application” name.
  • Subsystem Name:
    • Enter your desired Subsystem name. Please use a name corresponding to your logs “Subsystem” name.
    • You can specify more than 1 Subsystem name, separated by a commas.
  • Tag Name

URL Example

https://webapi.coralogix.com/api/v1/external/bitbucket/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?application=bitbucket&subsystem=build-tag-test&name=bitbucket-tag-test

(Please note the question mark ‘?’ immediately after the API key. You could copy and paste this example,
and replace the API Endpoint, Alerts and Tags API Key, and additional parameters with your own values).

  1. Under “Triggers”, please select Build status updated”.
  1. On the right bottom, please click “Save”.

On this page