---
title: Integrating Jenkins with Mergify
description: Run CI Insights via the Mergify Jenkins plugin and Merge Queue Scopes through the Mergify CLI.
---

<IntegrationLogo src={jenkinsLogo} alt="Jenkins logo"/>

[Jenkins](https://www.jenkins.io/) is an open-source automation server. Mergify
ships a [Jenkins plugin](https://plugins.jenkins.io/mergify/) for CI Insights
and supports Merge Queue Scopes through the Mergify CLI. Any Jenkins status
check reported to GitHub can also be referenced from your Mergify
[conditions](/configuration/conditions) via `check-success`.

## Prerequisites

1. Jenkins is properly set up and is building your projects. See the [Jenkins
   Documentation](https://www.jenkins.io/doc/) for help with setting up
   Jenkins.

2. Jenkins is configured to report build statuses to GitHub. This is typically
   done via plugins such as the [GitHub
   plugin](https://plugins.jenkins.io/github/) or the [GitHub Branch Source
   Plugin](https://plugins.jenkins.io/github-branch-source/).

3. The [Mergify GitHub App](/integrations/github) is installed in your repository.

## Mergify features for Jenkins

- **[CI Insights](/ci-insights/setup/jenkins)**: install the Mergify Jenkins
  plugin to collect job metrics, detect flaky tests, and get Slack
  notifications for CI failures.

- **[Merge Queue Scopes](/merge-queue/scopes/others)**: run only the jobs
  affected by a batch when processing the merge queue, via the Mergify CLI.
