CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployments · 14 of 65

corestack_deployments_pipeline_copy

Copy a pipeline from another environment.

Scope writeAlso exec to reveal secretsAsks you to confirmNo secrets returned
On this page

When to use it

Copy parts of another environment of the same site onto this binding: its stages, settings, variables, registry secrets or deployment options. Run it with dry_run: true first: it writes nothing and answers per part what would be added, overwritten or left unchanged, by name only. Variables and secrets are copied inside the Control Panel, never through you. The target's previous version stays restorable. Your access must cover both environments; copying onto production needs confirm_production: true; stages that bring a custom line this binding does not run also need exec.

The same action in the public REST API, with the same checks, refusals and scope: POST /api/corestack/sites/{site}/deployments/pipeline/{binding}/copy.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_deployments_pipeline_copy with site_id 4212, from_site_id 4211, parts ["stages","settings"], revision r-8f2c, dry_run true. (Copy a pipeline from another environment.) Tell me what it returned.

Inputs

binding_idinteger

Default: the environment's default binding. At least 1.

confirm_productionbooleanConfirmation

Required to copy onto a production environment.

dry_runboolean

Write nothing; answer what would change.

from_binding_idinteger

Default: that environment's repository binding. At least 1.

from_site_idintegerRequired

Another environment of the same site. At least 1.

partsarray of stringsRequired

Up to 5 items.

stagessettingsvariablessecretsoptions
revisionstringRequired

This binding's pipeline revision you read.

site_idintegerRequired

At least 1.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_deployments_pipeline_copy",
  "arguments": {
    "site_id": 4212,
    "from_site_id": 4211,
    "parts": [
      "stages",
      "settings"
    ],
    "revision": "r-8f2c",
    "dry_run": true
  }
}

If it is refused

ReasonWhat to do
forbiddenThe person's role lacks the Edit Environment Deployment Pipeline permission (copying writes this site's pipeline). The message names it and says an owner of the company can grant it in Roles; details.permission is editEnvironmentDeploymentPipeline. Nothing is changed.
confirmThe target is production; send confirm_production: true to copy onto it.
pipeline_classicThe source or this binding is still a classic pipeline, so stages and settings cannot be copied.
staleThe pipeline changed since you read it; read it again and resend.
pipeline_lockedCorefinity has locked this pipeline.
variable_reservedA copied variable has a name this environment reserves.
variable_tool_credentialA copied variable is named as a build tool's credential (COMPOSER_AUTH, NPM_TOKEN, …) and this environment does not have it yet: builds would see it as CF_<name>, so the tool would never read it. Nothing is copied; save the credentials under Private registries, or copy without variables.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT