stage | group | info |
---|---|---|
none |
unassigned |
To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments |
NOTE: Note: This API requires an access token with Maintainer or Owner permissions
Introduced in GitLab 12.7.
Get a list of all active project services.
GET /projects/:id/services
Example response:
[
{
"id": 75,
"title": "Jenkins CI",
"slug": "jenkins",
"created_at": "2019-11-20T11:20:25.297Z",
"updated_at": "2019-11-20T12:24:37.498Z",
"active": true,
"commit_events": true,
"push_events": true,
"issues_events": true,
"confidential_issues_events": true,
"merge_requests_events": true,
"tag_push_events": false,
"note_events": true,
"confidential_note_events": true,
"pipeline_events": true,
"wiki_page_events": true,
"job_events": true,
"comment_on_event_enabled": true
}
{
"id": 76,
"title": "Alerts endpoint",
"slug": "alerts",
"created_at": "2019-11-20T11:20:25.297Z",
"updated_at": "2019-11-20T12:24:37.498Z",
"active": true,
"commit_events": true,
"push_events": true,
"issues_events": true,
"confidential_issues_events": true,
"merge_requests_events": true,
"tag_push_events": true,
"note_events": true,
"confidential_note_events": true,
"pipeline_events": true,
"wiki_page_events": true,
"job_events": true,
"comment_on_event_enabled": true
}
]
Asana - Teamwork without email
Set Asana service for a project.
This service adds commit messages as comments to Asana tasks. Once enabled, commit messages are checked for Asana task URLs (for example,
https://app.asana.com/0/123456/987654
) or task IDs starting with # (for example,#987654
). Every task ID found gets the commit comment added to it. You can also close a task with a message containing:fix #123456
. You can find your API Keys here: https://developers.asana.com/docs/#authentication-basics.
PUT /projects/:id/services/asana
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
api_key |
string | true | User API token. User must have access to task, all comments are attributed to this user. |
restrict_to_branch |
string | false | Comma-separated list of branches which are automatically inspected. Leave blank to include all branches. |
push_events |
boolean | false | Enable notifications for push events |
Delete Asana service for a project.
DELETE /projects/:id/services/asana
Get Asana service settings for a project.
GET /projects/:id/services/asana
Project Management Software (Source Commits Endpoint)
Set Assembla service for a project.
PUT /projects/:id/services/assembla
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | The authentication token |
subdomain |
string | false | The subdomain setting |
push_events |
boolean | false | Enable notifications for push events |
Delete Assembla service for a project.
DELETE /projects/:id/services/assembla
Get Assembla service settings for a project.
GET /projects/:id/services/assembla
A continuous integration and build server
Set Atlassian Bamboo CI service for a project.
You must set up automatic revision labeling and a repository trigger in Bamboo.
PUT /projects/:id/services/bamboo
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
bamboo_url |
string | true | Bamboo root URL. For example, https://bamboo.example.com . |
build_key |
string | true | Bamboo build plan key like KEY |
username |
string | true | A user with API access, if applicable |
password |
string | true | Password of the user |
push_events |
boolean | false | Enable notifications for push events |
Delete Atlassian Bamboo CI service for a project.
DELETE /projects/:id/services/bamboo
Get Atlassian Bamboo CI service settings for a project.
GET /projects/:id/services/bamboo
Bugzilla Issue Tracker
Set Bugzilla service for a project.
PUT /projects/:id/services/bugzilla
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
new_issue_url |
string | true | New Issue URL |
issues_url |
string | true | Issue URL |
project_url |
string | true | Project URL |
description |
string | false | Description |
title |
string | false | Title |
push_events |
boolean | false | Enable notifications for push events |
Delete Bugzilla service for a project.
DELETE /projects/:id/services/bugzilla
Get Bugzilla service settings for a project.
GET /projects/:id/services/bugzilla
Continuous integration and deployments
Set Buildkite service for a project.
PUT /projects/:id/services/buildkite
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | Buildkite project GitLab token |
project_url |
string | true | Pipeline URL. For example, https://buildkite.com/example/pipeline |
enable_ssl_verification |
boolean | false | DEPRECATED: This parameter has no effect since SSL verification is always enabled |
push_events |
boolean | false | Enable notifications for push events |
Delete Buildkite service for a project.
DELETE /projects/:id/services/buildkite
Get Buildkite service settings for a project.
GET /projects/:id/services/buildkite
Simple web-based real-time group chat
Set Campfire service for a project.
PUT /projects/:id/services/campfire
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | Campfire token |
subdomain |
string | false | Campfire subdomain |
room |
string | false | Campfire room |
push_events |
boolean | false | Enable notifications for push events |
Delete Campfire service for a project.
DELETE /projects/:id/services/campfire
Get Campfire service settings for a project.
GET /projects/:id/services/campfire
Unify Circuit RTC and collaboration tool.
Set Unify Circuit service for a project.
PUT /projects/:id/services/unify-circuit
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
webhook |
string | true | The Unify Circuit webhook. For example, https://circuit.com/rest/v2/webhooks/incoming/... . |
notify_only_broken_pipelines |
boolean | false | Send notifications for broken pipelines |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". The default value is "default" |
push_events |
boolean | false | Enable notifications for push events |
issues_events |
boolean | false | Enable notifications for issue events |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
note_events |
boolean | false | Enable notifications for note events |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
wiki_page_events |
boolean | false | Enable notifications for wiki page events |
Delete Unify Circuit service for a project.
DELETE /projects/:id/services/unify-circuit
Get Unify Circuit service settings for a project.
GET /projects/:id/services/unify-circuit
Webex Teams collaboration tool.
Set Webex Teams service for a project.
PUT /projects/:id/services/webex-teams
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
webhook |
string | true | The Webex Teams webhook. For example, https://api.ciscospark.com/v1/webhooks/incoming/... . |
notify_only_broken_pipelines |
boolean | false | Send notifications for broken pipelines |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". The default value is "default" |
push_events |
boolean | false | Enable notifications for push events |
issues_events |
boolean | false | Enable notifications for issue events |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
note_events |
boolean | false | Enable notifications for note events |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
wiki_page_events |
boolean | false | Enable notifications for wiki page events |
Delete Webex Teams service for a project.
DELETE /projects/:id/services/webex-teams
Get Webex Teams service settings for a project.
GET /projects/:id/services/webex-teams
Custom issue tracker
Set Custom Issue Tracker service for a project.
PUT /projects/:id/services/custom-issue-tracker
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
new_issue_url |
string | true | New Issue URL |
issues_url |
string | true | Issue URL |
project_url |
string | true | Project URL |
description |
string | false | Description |
title |
string | false | Title |
push_events |
boolean | false | Enable notifications for push events |
Delete Custom Issue Tracker service for a project.
DELETE /projects/:id/services/custom-issue-tracker
Get Custom Issue Tracker service settings for a project.
GET /projects/:id/services/custom-issue-tracker
Drone is a Continuous Integration platform built on Docker, written in Go
Set Drone CI service for a project.
PUT /projects/:id/services/drone-ci
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | Drone CI project specific token |
drone_url |
string | true | http://drone.example.com |
enable_ssl_verification |
boolean | false | Enable SSL verification |
push_events |
boolean | false | Enable notifications for push events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
Delete Drone CI service for a project.
DELETE /projects/:id/services/drone-ci
Get Drone CI service settings for a project.
GET /projects/:id/services/drone-ci
Email the commits and diff of each push to a list of recipients.
Set Emails on push service for a project.
PUT /projects/:id/services/emails-on-push
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
recipients |
string | true | Emails separated by whitespace |
disable_diffs |
boolean | false | Disable code diffs |
send_from_committer_email |
boolean | false | Send from committer |
push_events |
boolean | false | Enable notifications for push events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". Notifications are always fired for tag pushes. The default value is "all" |
Delete Emails on push service for a project.
DELETE /projects/:id/services/emails-on-push
Get Emails on push service settings for a project.
GET /projects/:id/services/emails-on-push
- Introduced in GitLab 13.2.
Replaces the link to the internal wiki with a link to a Confluence Cloud Workspace.
Set Confluence service for a project.
PUT /projects/:id/services/confluence
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
confluence_url |
string | true | The URL of the Confluence Cloud Workspace hosted on atlassian.net. |
Delete Confluence service for a project.
DELETE /projects/:id/services/confluence
Get Confluence service settings for a project.
GET /projects/:id/services/confluence
Replaces the link to the internal wiki with a link to an external wiki.
Set External Wiki service for a project.
PUT /projects/:id/services/external-wiki
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
external_wiki_url |
string | true | The URL of the external Wiki |
Delete External Wiki service for a project.
DELETE /projects/:id/services/external-wiki
Get External Wiki service settings for a project.
GET /projects/:id/services/external-wiki
Flowdock is a collaboration web app for technical teams.
Set Flowdock service for a project.
PUT /projects/:id/services/flowdock
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | Flowdock Git source token |
push_events |
boolean | false | Enable notifications for push events |
Delete Flowdock service for a project.
DELETE /projects/:id/services/flowdock
Get Flowdock service settings for a project.
GET /projects/:id/services/flowdock
Code collaboration software.
Set GitHub service for a project.
PUT /projects/:id/services/github
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | GitHub API token with repo:status OAuth scope |
repository_url |
string | true | GitHub repository URL |
static_context |
boolean | false | Append instance name instead of branch to status check name |
Delete GitHub service for a project.
DELETE /projects/:id/services/github
Get GitHub service settings for a project.
GET /projects/:id/services/github
Introduced in GitLab 11.2.
Google GSuite team collaboration tool.
Set Hangouts Chat service for a project.
PUT /projects/:id/services/hangouts-chat
NOTE: Note:
Specific event parameters (for example, push_events
flag) were introduced in v10.4
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
webhook |
string | true | The Hangouts Chat webhook. For example, https://chat.googleapis.com/v1/spaces... . |
notify_only_broken_pipelines |
boolean | false | Send notifications for broken pipelines |
notify_only_default_branch |
boolean | false | DEPRECATED: This parameter has been replaced with branches_to_be_notified |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". The default value is "default" |
push_events |
boolean | false | Enable notifications for push events |
issues_events |
boolean | false | Enable notifications for issue events |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
note_events |
boolean | false | Enable notifications for note events |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
wiki_page_events |
boolean | false | Enable notifications for wiki page events |
Delete Hangouts Chat service for a project.
DELETE /projects/:id/services/hangouts-chat
Get Hangouts Chat service settings for a project.
GET /projects/:id/services/hangouts-chat
Private group chat and IM
Set HipChat service for a project.
PUT /projects/:id/services/hipchat
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | Room token |
color |
string | false | The room color |
notify |
boolean | false | Enable notifications |
room |
string | false | Room name or ID |
api_version |
string | false | Leave blank for default (v2) |
server |
string | false | Leave blank for default. For example, https://hipchat.example.com . |
push_events |
boolean | false | Enable notifications for push events |
issues_events |
boolean | false | Enable notifications for issue events |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
note_events |
boolean | false | Enable notifications for note events |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
Delete HipChat service for a project.
DELETE /projects/:id/services/hipchat
Get HipChat service settings for a project.
GET /projects/:id/services/hipchat
Send IRC messages, on update, to a list of recipients through an Irker gateway.
Set Irker (IRC gateway) service for a project.
NOTE: Irker does NOT have built-in authentication, which makes it vulnerable to spamming IRC channels if it is hosted outside of a firewall. Please make sure you run the daemon within a secured network to prevent abuse. For more details, read: http://www.catb.org/~esr/irker/security.html.
PUT /projects/:id/services/irker
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
recipients |
string | true | Recipients/channels separated by whitespaces |
default_irc_uri |
string | false | irc://irc.network.net:6697/ |
server_host |
string | false | localhost |
server_port |
integer | false | 6659 |
colorize_messages |
boolean | false | Colorize messages |
push_events |
boolean | false | Enable notifications for push events |
Delete Irker (IRC gateway) service for a project.
DELETE /projects/:id/services/irker
Get Irker (IRC gateway) service settings for a project.
GET /projects/:id/services/irker
Jira issue tracker.
Get Jira service settings for a project.
GET /projects/:id/services/jira
Set Jira service for a project.
Starting with GitLab 8.14,
api_url
,issues_url
,new_issue_url
andproject_url
are replaced byurl
. If you are using an older version, follow this documentation.
PUT /projects/:id/services/jira
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
url |
string | yes | The URL to the Jira project which is being linked to this GitLab project. For example, https://jira.example.com . |
api_url |
string | no | The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com . |
username |
string | yes | The username of the user created to be used with GitLab/Jira. |
password |
string | yes | The password of the user created to be used with GitLab/Jira. |
active |
boolean | no | Activates or deactivates the service. Defaults to false (deactivated). |
jira_issue_transition_id |
string | no | The ID of a transition that moves issues to a closed state. You can find this number under the Jira workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. The ID of each state can be found inside the parenthesis of each transition name under the transitions ID column. By default, this ID is set to 2 . |
commit_events |
boolean | false | Enable notifications for commit events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
comment_on_event_enabled |
boolean | false | Enable comments inside Jira issues on each GitLab event (commit / merge request) |
Remove all previously Jira settings from a project.
DELETE /projects/:id/services/jira
Ability to receive slash commands from a Slack chat instance.
Get Slack slash command service settings for a project.
GET /projects/:id/services/slack-slash-commands
Example response:
{
"id": 4,
"title": "Slack slash commands",
"slug": "slack-slash-commands",
"created_at": "2017-06-27T05:51:39-07:00",
"updated_at": "2017-06-27T05:51:39-07:00",
"active": true,
"push_events": true,
"issues_events": true,
"confidential_issues_events": true,
"merge_requests_events": true,
"tag_push_events": true,
"note_events": true,
"job_events": true,
"pipeline_events": true,
"comment_on_event_enabled": false,
"properties": {
"token": "<your_access_token>"
}
}
Set Slack slash command for a project.
PUT /projects/:id/services/slack-slash-commands
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | yes | The Slack token |
Delete Slack slash command service for a project.
DELETE /projects/:id/services/slack-slash-commands
Ability to receive slash commands from a Mattermost chat instance.
Get Mattermost slash command service settings for a project.
GET /projects/:id/services/mattermost-slash-commands
Set Mattermost slash command for a project.
PUT /projects/:id/services/mattermost-slash-commands
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | yes | The Mattermost token |
username |
string | no | The username to use to post the message |
Delete Mattermost slash command service for a project.
DELETE /projects/:id/services/mattermost-slash-commands
Update your project on Packagist (the main Composer repository) when commits or tags are pushed to GitLab.
Set Packagist service for a project.
PUT /projects/:id/services/packagist
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
username |
string | yes | The username of a Packagist account |
token |
string | yes | API token to the Packagist server |
server |
boolean | no | URL of the Packagist server. Leave blank for default: https://packagist.org |
push_events |
boolean | false | Enable notifications for push events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
Delete Packagist service for a project.
DELETE /projects/:id/services/packagist
Get Packagist service settings for a project.
GET /projects/:id/services/packagist
Get emails for GitLab CI/CD pipelines.
Set Pipeline-Emails service for a project.
PUT /projects/:id/services/pipelines-email
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
recipients |
string | yes | Comma-separated list of recipient email addresses |
add_pusher |
boolean | no | Add pusher to recipients list |
notify_only_broken_pipelines |
boolean | no | Notify only broken pipelines |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected. The default value is "default" |
notify_only_default_branch |
boolean | no | Send notifications only for the default branch (introduced in GitLab 12.0) |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
Delete Pipeline-Emails service for a project.
DELETE /projects/:id/services/pipelines-email
Get Pipeline-Emails service settings for a project.
GET /projects/:id/services/pipelines-email
Project Management Software (Source Commits Endpoint)
Set PivotalTracker service for a project.
PUT /projects/:id/services/pivotaltracker
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
token |
string | true | The PivotalTracker token |
restrict_to_branch |
boolean | false | Comma-separated list of branches to automatically inspect. Leave blank to include all branches. |
push_events |
boolean | false | Enable notifications for push events |
Delete PivotalTracker service for a project.
DELETE /projects/:id/services/pivotaltracker
Get PivotalTracker service settings for a project.
GET /projects/:id/services/pivotaltracker
Prometheus is a powerful time-series monitoring service.
Set Prometheus service for a project.
PUT /projects/:id/services/prometheus
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
api_url |
string | true | Prometheus API Base URL. For example, http://prometheus.example.com/ . |
google_iap_audience_client_id |
string | false | Client ID of the IAP secured resource (looks like IAP_CLIENT_ID.apps.googleusercontent.com) |
google_iap_service_account_json |
string | false | credentials.json file for your service account, like { "type": "service_account", "project_id": ... } |
Delete Prometheus service for a project.
DELETE /projects/:id/services/prometheus
Get Prometheus service settings for a project.
GET /projects/:id/services/prometheus
Pushover makes it easy to get real-time notifications on your Android device, iPhone, iPad, and Desktop.
Set Pushover service for a project.
PUT /projects/:id/services/pushover
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
api_key |
string | true | Your application key |
user_key |
string | true | Your user key |
priority |
string | true | The priority |
device |
string | false | Leave blank for all active devices |
sound |
string | false | The sound of the notification |
push_events |
boolean | false | Enable notifications for push events |
Delete Pushover service for a project.
DELETE /projects/:id/services/pushover
Get Pushover service settings for a project.
GET /projects/:id/services/pushover
Redmine issue tracker
Set Redmine service for a project.
PUT /projects/:id/services/redmine
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
new_issue_url |
string | true | New Issue URL |
project_url |
string | true | Project URL |
issues_url |
string | true | Issue URL |
description |
string | false | Description |
push_events |
boolean | false | Enable notifications for push events |
Delete Redmine service for a project.
DELETE /projects/:id/services/redmine
Get Redmine service settings for a project.
GET /projects/:id/services/redmine
Receive event notifications in Slack
Set Slack service for a project.
PUT /projects/:id/services/slack
NOTE: Note:
Specific event parameters (for example, push_events
flag and push_channel
) were introduced in v10.4
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
webhook |
string | true | https://hooks.slack.com/services/... |
username |
string | false | username |
channel |
string | false | Default channel to use if others are not configured |
notify_only_broken_pipelines |
boolean | false | Send notifications for broken pipelines |
notify_only_default_branch |
boolean | false | DEPRECATED: This parameter has been replaced with branches_to_be_notified |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". The default value is "default" |
commit_events |
boolean | false | Enable notifications for commit events |
confidential_issue_channel |
string | false | The name of the channel to receive confidential issues events notifications |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
confidential_note_channel |
string | false | The name of the channel to receive confidential note events notifications |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
deployment_channel |
string | false | The name of the channel to receive deployment events notifications |
deployment_events |
boolean | false | Enable notifications for deployment events |
issue_channel |
string | false | The name of the channel to receive issues events notifications |
issues_events |
boolean | false | Enable notifications for issue events |
job_events |
boolean | false | Enable notifications for job events |
merge_request_channel |
string | false | The name of the channel to receive merge request events notifications |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
note_channel |
string | false | The name of the channel to receive note events notifications |
note_events |
boolean | false | Enable notifications for note events |
pipeline_channel |
string | false | The name of the channel to receive pipeline events notifications |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
push_channel |
string | false | The name of the channel to receive push events notifications |
push_events |
boolean | false | Enable notifications for push events |
tag_push_channel |
string | false | The name of the channel to receive tag push events notifications |
tag_push_events |
boolean | false | Enable notifications for tag push events |
wiki_page_channel |
string | false | The name of the channel to receive wiki page events notifications |
wiki_page_events |
boolean | false | Enable notifications for wiki page events |
Delete Slack service for a project.
DELETE /projects/:id/services/slack
Get Slack service settings for a project.
GET /projects/:id/services/slack
Group Chat Software
Set Microsoft Teams service for a project.
PUT /projects/:id/services/microsoft-teams
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
webhook |
string | true | The Microsoft Teams webhook. For example, https://outlook.office.com/webhook/... |
notify_only_broken_pipelines |
boolean | false | Send notifications for broken pipelines |
notify_only_default_branch |
boolean | false | DEPRECATED: This parameter has been replaced with branches_to_be_notified |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". The default value is "default" |
push_events |
boolean | false | Enable notifications for push events |
issues_events |
boolean | false | Enable notifications for issue events |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
note_events |
boolean | false | Enable notifications for note events |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
wiki_page_events |
boolean | false | Enable notifications for wiki page events |
Delete Microsoft Teams service for a project.
DELETE /projects/:id/services/microsoft-teams
Get Microsoft Teams service settings for a project.
GET /projects/:id/services/microsoft-teams
Receive event notifications in Mattermost
Set Mattermost service for a project.
PUT /projects/:id/services/mattermost
NOTE: Note:
Specific event parameters (for example, push_events
flag and push_channel
) were introduced in v10.4
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
webhook |
string | true | The Mattermost webhook. For example, http://mattermost_host/hooks/... |
username |
string | false | username |
channel |
string | false | Default channel to use if others are not configured |
notify_only_broken_pipelines |
boolean | false | Send notifications for broken pipelines |
notify_only_default_branch |
boolean | false | DEPRECATED: This parameter has been replaced with branches_to_be_notified |
branches_to_be_notified |
string | false | Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected". The default value is "default" |
push_events |
boolean | false | Enable notifications for push events |
issues_events |
boolean | false | Enable notifications for issue events |
confidential_issues_events |
boolean | false | Enable notifications for confidential issue events |
merge_requests_events |
boolean | false | Enable notifications for merge request events |
tag_push_events |
boolean | false | Enable notifications for tag push events |
note_events |
boolean | false | Enable notifications for note events |
confidential_note_events |
boolean | false | Enable notifications for confidential note events |
pipeline_events |
boolean | false | Enable notifications for pipeline events |
wiki_page_events |
boolean | false | Enable notifications for wiki page events |
push_channel |
string | false | The name of the channel to receive push events notifications |
issue_channel |
string | false | The name of the channel to receive issues events notifications |
confidential_issue_channel |
string | false | The name of the channel to receive confidential issues events notifications |
merge_request_channel |
string | false | The name of the channel to receive merge request events notifications |
note_channel |
string | false | The name of the channel to receive note events notifications |
confidential_note_channel |
boolean | The name of the channel to receive confidential note events notifications | |
tag_push_channel |
string | false | The name of the channel to receive tag push events notifications |
pipeline_channel |
string | false | The name of the channel to receive pipeline events notifications |
wiki_page_channel |
string | false | The name of the channel to receive wiki page events notifications |
Delete Mattermost Notifications service for a project.
DELETE /projects/:id/services/mattermost
Get Mattermost notifications service settings for a project.
GET /projects/:id/services/mattermost
A continuous integration and build server
Set JetBrains TeamCity CI service for a project.
The build configuration in TeamCity must use the build format number
%build.vcs.number%
. Configure monitoring of all branches so merge requests build. That setting is in the VSC root advanced settings.
PUT /projects/:id/services/teamcity
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
teamcity_url |
string | true | TeamCity root URL. For example, https://teamcity.example.com |
build_type |
string | true | Build configuration ID |
username |
string | true | A user with permissions to trigger a manual build |
password |
string | true | The password of the user |
push_events |
boolean | false | Enable notifications for push events |
Delete JetBrains TeamCity CI service for a project.
DELETE /projects/:id/services/teamcity
Get JetBrains TeamCity CI service settings for a project.
GET /projects/:id/services/teamcity
A continuous integration and build server
Set Jenkins CI service for a project.
PUT /projects/:id/services/jenkins
Parameters:
jenkins_url
(required) - Jenkins URL likehttp://jenkins.example.com
project_name
(required) - The URL-friendly project name. Example: my_project_nameusername
(optional) - A user with access to the Jenkins server, if applicablepassword
(optional) - The password of the user
Delete Jenkins CI service for a project.
DELETE /projects/:id/services/jenkins
Get Jenkins CI service settings for a project.
GET /projects/:id/services/jenkins
A continuous integration and build server
NOTE: Note: This service was removed in v13.0
Set Jenkins CI (Deprecated) service for a project.
PUT /projects/:id/services/jenkins-deprecated
Parameters:
project_url
(required) - Jenkins project URL likehttp://jenkins.example.com/job/my-project/
multiproject_enabled
(optional) - Multi-project mode is configured in Jenkins GitLab Hook pluginpass_unstable
(optional) - Unstable builds are treated as passing
Delete Jenkins CI (Deprecated) service for a project.
DELETE /projects/:id/services/jenkins-deprecated
Get Jenkins CI (Deprecated) service settings for a project.
GET /projects/:id/services/jenkins-deprecated
Mock an external CI. See gitlab-org/gitlab-mock-ci-service
for an example of a companion mock service.
This service is only available when your environment is set to development.
Set MockCI service for a project.
PUT /projects/:id/services/mock-ci
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
mock_service_url |
string | true | http://localhost:4004 |
Delete MockCI service for a project.
DELETE /projects/:id/services/mock-ci
Get MockCI service settings for a project.
GET /projects/:id/services/mock-ci
YouTrack issue tracker
Set YouTrack service for a project.
PUT /projects/:id/services/youtrack
Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
issues_url |
string | true | Issue URL |
project_url |
string | true | Project URL |
description |
string | false | Description |
push_events |
boolean | false | Enable notifications for push events |
Delete YouTrack service for a project.
DELETE /projects/:id/services/youtrack
Get YouTrack service settings for a project.
GET /projects/:id/services/youtrack