---
title: "Deployments and pipelines"
url: https://docs.corefinity.com/guides/corestack-enterprise/deployments-and-pipelines
type: guide
last_updated: 2026-11-13
feature: enterprise-deployments
related:
  - https://docs.corefinity.com/api/reference/enterprise/list-environment-deployment-pipelines.md
  - https://docs.corefinity.com/api/reference/enterprise/get-environment-deployment-settings.md
  - https://docs.corefinity.com/api/reference/enterprise/update-environment-deployment-settings.md
  - https://docs.corefinity.com/api/reference/enterprise/list-environment-deployments.md
  - https://docs.corefinity.com/api/reference/enterprise/create-environment-deployment.md
  - https://docs.corefinity.com/api/reference/enterprise/get-environment-deployment.md
  - https://docs.corefinity.com/mcp/tools/corestack_enterprise_deployment_settings_get.md
  - https://docs.corefinity.com/mcp/tools/corestack_enterprise_deployment_settings_update.md
  - https://docs.corefinity.com/mcp/tools/corestack_enterprise_repositories_list.md
  - https://docs.corefinity.com/mcp/tools/corestack_enterprise_repository_set.md
  - https://docs.corefinity.com/mcp/tools/corestack_enterprise_repository_remove.md
  - https://docs.corefinity.com/mcp/tools/corestack_enterprise_deployments_list.md
---
# Deployments and pipelines

Deploy a commit to a CoreStack Enterprise environment, follow it task by task, and retry it or roll it back.

## Before you start

- You can open the environment: see [Websites and environments](/guides/corestack-enterprise/websites-and-environments).
- You are an owner, or your role has **Create Deployments**. Retrying and rolling back need **Retry Deployments** and **Rollback Deployments**.
- **Deployment Pipeline Status** reads **Enabled**, and the environment has a repository: see [Repositories and webhooks](/guides/corestack-enterprise/repositories-and-webhooks).

## Deploy a commit

1. **Open Deployments**

   Open the environment and choose **Deployments**. The list at the bottom shows every deployment with its **Tasks**, **Status**, **Created** time and **Duration**; the release that is live reads **Succeeded (current)**.

   _Screenshot: The Deployments list of an environment: deployments with their pipeline, number of tasks, status, when they were created and how long they took, the newest marked Succeeded (current) and others Failed or Cancelled, and the Deploy button ringed._

2. **Choose what to deploy**

   Choose **Deploy**. Under **Deploy from**, choose **A Git commit**, then the **Repository**, the **Commit** and the **Deployment Pipeline**; **Upload an artifact** deploys a release archive instead.

3. **Start it**

   Choose **Deploy**.

The deployment's page opens and follows it task by task.

## Follow a deployment

1. **Open the deployment**

   Choose a deployment in the list. **Job log** groups the tasks into **Prepare**, **Source**, **Release artifact**, **Application**, **Cut over** and **Finalise**: choose a task to read its output.

   _Screenshot: A deployment's page: the Job log with its groups of tasks all passed, and a side panel with the status Succeeded, 27 of 27 tasks, the timing, the target, the repository, branch and commit._

2. **Act on it**

   | To                            | Choose                     |
   | ----------------------------- | -------------------------- |
   | Run the same deployment again | **Retry deployment**       |
   | Put the previous release back | **···**, then **Rollback** |

## See the pipeline

1. **Open Pipelines**

   Choose **Pipelines** for the environment's pipeline, with its **Root web directory**, **Root storage directory** and whether it uses custom build commands.

   _Screenshot: The Pipelines tab: one pipeline with its note, for Production, with the web and storage directories /var/www/html/ and the Deployment Pipeline Magento 2._

**Disable Deployment Pipeline**, at the top of **Deployments**, stops deployments on the environment until you choose **Enable Deployment Pipeline**.

## Automate this

**API:** [Create an environment deployment](https://docs.corefinity.com/api/reference/enterprise/create-environment-deployment.md), scope `write`

```bash
curl -X POST https://manage.corefinity.com/api/environments/1311/deployments \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "git": true,
    "git_commit": "93ac3ee17c1306a5c478c583f0946e40d2e291f0",
    "git_repository": 3301,
    "name": "Release 2026.11.1",
    "notes": "Checkout fixes"
  }'
```

**MCP:** [`corestack_enterprise_deployment_trigger`](https://docs.corefinity.com/mcp/tools/corestack_enterprise_deployment_trigger.md), scope `write`

```json
{
  "name": "corestack_enterprise_deployment_trigger",
  "arguments": {
    "enterprise_env_id": 1530,
    "repository_id": 812,
    "commit": "4f2c9a1e0b7d3c5a6e8f9b0c1d2e3f4a5b6c7d8e",
    "notes": "Hotfix for the checkout page"
  }
}
```

**Control Panel:** Managed Websites › your Enterprise website › Deployments

## Related

- [Repositories and webhooks](/guides/corestack-enterprise/repositories-and-webhooks): Choose the repository an environment deploys from.
- [Environment variables](/guides/corestack-enterprise/environment-variables): Add variables an environment's deployments read.
- [Slack notifications](/guides/corestack-enterprise/slack-notifications): Send deployment messages to a Slack channel.
