Table of Contents

Overview of Extensibility

Starting with version 1.12, HgLab offers integrations with JIRA, Slack and TeamCity.

Stay tuned for new Extensions, as well as for for more features in existing ones.

Extensions are currently global; no per-Project or per-Repository configuration just yet.

Crucible Integration

Crucible Integration Extension is available starting with HgLab 1.12.9.

When enabled, this Extension will trigger an Incremental Reindex of the repository in question.

In order to work with the Crucible/Fisheye API, the user (identified by the "Crucible Login"/"Crucible Password" credentials) must be granted Administrator privileges.

JIRA Integration

When enabled, this Extension will attach Remote Issue Links to relevant commits in HgLab.

This is what it looks like in JIRA:

JIRA Remote Issue Links to HgLab

To configure JIRA Integration Extension, go to Administration Area and click "JIRA Integration" under "Extensibility".

JIRA Integration Extension in HgLab

The JIRA Integration Extension does the linking by analyzing branch names and commit messages, extracting fragments of text matching JIRA Issue Key Regex and then creating a Remote Issue Link using REST API endpoint of JIRA Software installed at JIRA Url.

JIRA Issue Keys can usually be matched using this regular expression: ([A-Z]{2,10}-\d+).

Slack Integration

When enabled, this Extension posts messages to a Slack channel whenever commits are pushed to HgLab.

This is what it looks like in Slack:

Slack Notifications on Pushes to HgLab

Setting up Slack Integration is a two-step process. First, Slack has to be configured appropriately. Start by adding an Incoming Webhook Integration to your Slack team. Pick a channel where messages will be posted and create the Incoming Webhook. Note the Webhook URL and then proceed to configuring HgLab.

Slack Incoming Webhook

To configure Slack Integration Extension, go to Administration Area and click "Slack Integration" under "Extensibility".

Slack Integration Extension in HgLab
Remember that Slack Integration is configured globally, which means that notifications about pushes to all repositories will end up in the Slack channel.

TeamCity Integration

When enabled, this Extension notifies TeamCity that commits were pushed to HgLab. See VCS Post-Commit Hooks for more information.

TeamCity Integration Extension in HgLab

comments powered by Disqus

Take HgLab for a Spin

Try HgLab now. Full-featured 45-day evaluation, no credit card required.