# Cover Pipeline for CI

Integrating Diffblue Cover into a CI pipeline provides the fastest and most comprehensive way to protect your codebase from regressions. Diffblue Cover CLI is triggered by your CI orchestration tool on each pull-request/merge request to:

* Automatically write new unit tests for new code.
* Automatically update existing unit tests in your code.
* Automatically notify about untestable code.
* Automatically make the code testable using Diffblue Cover Refactor.
* Automatically optimize the running of your unit tests with Diffblue Cover Optimize.

Cover Pipeline is completely flexible to fit into your workflow - you can customize how, when, and where Diffblue Cover is triggered so your workflow remains as natural as possible.

## Cover Reports in CI

Cover Pipeline can also automatically Diffblue Cover CLI on a regular basis to generate and upload to Cover Reports.

***

See [Quick Start - General](/features/cover-pipeline/cover-pipeline-for-ci/quick-start-guide-general.md) for information on how to use Diffblue Cover to write tests for your project as part of a CI pipeline. The topic outlines the basic commands that you will need to add to your CI scripts, but provides general information to understand the key steps - for specific CI tools, refer to the following:

* [Quick Start - Jenkins](/features/cover-pipeline/cover-pipeline-for-ci/quick-start-jenkins.md)
* [Quick Start - Azure Pipelines](/features/cover-pipeline/cover-pipeline-for-ci/quick-start-guide-azure.md)
* [Quick Start - AWS Codebuild](/features/cover-pipeline/cover-pipeline-for-ci/quick-start-guide-aws.md)

<div align="left" data-full-width="false"><figure><img src="/files/P5XU2IVtbttHelISnTYE" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/features/cover-pipeline/cover-pipeline-for-ci.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
