CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployment pipeline · 2 of 15

Get a site's carried-over pipeline

For an environment that was moved from CoreStack Enterprise, answers the build, database and after-deploy commands that came with it, translated into the three stages line by line, with the ones that need a person to look at them. bindings is empty when nothing was carried over.

GET/api/corestack/sites/{site}/deployments/carried-over

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Returns

200 What was carried over.

Fields of the 200 answer
attention_idinteger or null
auto_deployboolean
bindingsarray of objectsRequired

Each carried-over pipeline, with its translated lines and whether it is accepted.

Fields of each item
also_setarray of strings

Settings the translation made, in words.

binding_idintegerRequired
labelstring
linesarray of objectsRequired
Fields of each item
changestringRequired

What the translation did with the line, such as kept, rewritten or removed.

needs_reviewbooleanRequired
reasonstring

Why the line needs a look.

resultarray of objectsRequired

The lines it became, each with its stage.

sourceobjectRequired

The line's stage and index, which a decision names it by.

Fields
indexintegerRequired
stagestringRequired
textstringRequired

The command as it was carried over.

rehearsalobject or null
repositoryobject or null

The repository the pipeline deploys from.

revisionstring or null

Send this with the accept when it is not null.

statestringRequired

needs_review while a line needs a look, accepted once the pipeline has been accepted.

files_modeboolean
moved_atstring or null

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/sites/1042/deployments/carried-over \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "attention_id": "deploy_pipeline_carried:1042",
  "auto_deploy": false,
  "bindings": [
    {
      "also_set": [
        "Maintenance page: off"
      ],
      "binding_id": 2210,
      "label": "Default pipeline",
      "lines": [
        {
          "change": "kept",
          "needs_review": false,
          "result": [
            {
              "stage": "build",
              "text": "composer install --no-dev"
            }
          ],
          "source": {
            "index": 0,
            "stage": "build"
          },
          "text": "composer install --no-dev"
        },
        {
          "change": "rewritten",
          "needs_review": true,
          "reason": "Copies from the old server need a look",
          "result": [
            {
              "stage": "build",
              "text": "scp [email protected]:/var/www/media.tgz ."
            }
          ],
          "source": {
            "index": 1,
            "stage": "build"
          },
          "text": "scp [email protected]:/var/www/media.tgz ."
        }
      ],
      "rehearsal": null,
      "repository": {
        "branch": "main",
        "provider": "gitlab",
        "repo": "northwind-digital/harbourandfinch"
      },
      "revision": null,
      "state": "needs_review"
    }
  ],
  "files_mode": false,
  "moved_at": null
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT