跳到主要内容
版本:Next

BitBucket Data Center

Summary

This plugin collects various entities from Bitbucket Data Center, including pull requests, issues, comments, pipelines, git commits, and etc.

As of v0.20.0, bitbucket_server plugin can only be invoked through DevLake API. Its support in Config-UI is WIP.

Supported Versions

Available for BitBucket Data Center 8.16 and BitBucket Data Center and Server 7.21. Check this doc for more details.

Entities

Check out the BitBucket entities collected by this plugin.

Metrics

Metrics that can be calculated based on the data collected from bitbucket:

Configuration

API Sample Request

Note: Please replace the http://localhost:8080 in the sample requests with your actual DevLake API endpoint. For how to view DevLake API's swagger documentation, please refer to the "Using DevLake API" section of Developer Setup.

You can trigger data collection by making a POST request to /pipelines.

curl 'http://localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "project1",
"plan": [
[
{
"plugin": "bitbucket",
"options": {
"connectionId": 1,
"fullName": "likyh/likyhphp",
"transformationRules":{
"deploymentPattern":"",
"productionPattern":"",
"issueStatusTodo":"new,open",
"issueStatusInProgress":"",
"issueStatusDone":"resolved,closed",
"issueStatusOther":"on hold,wontfix,duplicate,invalid"
}
}
}
]
]
}
'

References