跳到主要内容
版本:Next

GitLab

Summary

This plugin collects GitLab data through API. It then computes and visualizes various DevOps metrics from the GitLab data, which helps tech leads, QA and DevOps engineers, and project managers to answer questions such as:

  • How long does it take for your codes to get merged?
  • How much time is spent on code review?
  • How long does it take for your codes to get merged?
  • How much time is spent on code review?

Supported Versions

Available for GitLab Cloud, Community Edition 11+. Check this doc for more details.

Entities

Check out the GitLab entities collected by this plugin.

Data Refresh Policy

Check out the data refresh policy of this plugin.

Metrics

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

Configuration

API Sample Request

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-BLUEPRINT",
"blueprintId": 1,
"plan": [
[
{
"plugin": "gitlab",
"options": {
"connectionId": 1,
"projectId": 33728042,
"transformationRules":{
"deploymentPattern":"",
"productionPattern":"",
"issueComponent":"",
"issuePriority":"(high|medium|low)$",
"issueSeverity":"",
"issueTypeBug":"(bug)$",
"issueTypeIncident":"",
"issueTypeRequirement":"(feature|feature-request)$",
"prBodyClosePattern":"",
"prComponent":"",
"prType":""
}
}
}
]
]
}
'

References