corestack_ deployments_ pipeline_ copy
Copy a pipeline from another environment.
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 /.
Ask for it
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
Default: the environment's default binding. At least 1.
Required to copy onto a production environment.
Write nothing; answer what would change.
Default: that environment's repository binding. At least 1.
Another environment of the same site. At least 1.
Up to 5 items.
stagessettingsvariablessecretsoptionsThis binding's pipeline revision you read.
At least 1.
Your assistant fills in a confirmation only after you agree.
Example 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
| Reason | What to do |
|---|---|
forbidden | The 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. |
confirm | The target is production; send confirm_production: true to copy onto it. |
pipeline_classic | The source or this binding is still a classic pipeline, so stages and settings cannot be copied. |
stale | The pipeline changed since you read it; read it again and resend. |
pipeline_locked | Corefinity has locked this pipeline. |
variable_reserved | A copied variable has a name this environment reserves. |
variable_tool_credential | A 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_elsewhere | Another 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_arguments | The 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_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The 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_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |