# Configuring Rollbacks at Pipeline Template

Pipeline rollbacks are a crucial aspect of any continuous integration/continuous deployment (CI/CD) process, allowing teams to revert to a previous version of their application or infrastructure in case of errors or issues detected after a deployment. Here's a breakdown of pipeline rollbacks:

**Definition**: A pipeline rollback is the process of reverting to a previous state of an application or infrastructure after a deployment, typically triggered in response to failures, errors, or unexpected behavior detected in the current version.

**Purpose**:

* **Mitigating Risks**: Rollbacks help mitigate risks associated with deploying new changes by providing a mechanism to quickly revert to a known stable state.
* **Restoring Service Availability**: In the event of deployment failures or issues impacting service availability, rollbacks enable teams to restore service functionality promptly.
* **Ensuring Data Integrity**: Rollbacks help maintain data integrity by preventing potential data loss or corruption resulting from faulty deployments.<br>

In Ozone, while creating a pipeline we give an option for rollback. In case of failure, it will roll back to the pipeline which you have selected.<br>

<figure><img src="/files/JZawlexRXX0PrCHuk6N8" alt=""><figcaption></figcaption></figure>


---

# 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://docs.ozone.one/ozone-end-user-guide/documentation/ci-cd/catalog/pipelines-templates-and-runs/configuring-rollbacks-at-pipeline-template.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.
