Перезапустить сборку
retry_deployRun a build again — a failed one as is, or the latest commit afresh.
Default (`redeploy=false`): queue the SAME build again. Allowed only for
builds in the `failed` or `cancelled` state. On a running build
(`queued`, `building`) the platform refuses — that is not an error but
protection against a second parallel build; on a `ready` build it
refuses too — use `redeploy=true`.
`redeploy=true`: start a NEW build of the branch's latest commit without
a push. This is how changed project settings (`project_settings`) or
environment variables (`env_vars`) get applied. The result goes live the
same way a push to that branch would — on the production branch that is
production, so make sure the person wants that. Projects without a
repository are rebuilt by deploying the folder again
(`npx layero@latest deploy` or `publish_site`).
⚠️ A plain retry makes sense when the cause was external (network,
registry, timeout). If the build failed on the code, a retry gives the
same result: `diagnose_deploy` first, then the fix, and only then a retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Only with `redeploy=true`: the branch to build. Defaults to the production branch. | |
| deploy | No | Build id (a UUID from `list_deploys`). Without it the latest build is used. Ignored with `redeploy=true`. | |
| project | Yes | The project: its slug (`my-site`) or id, as listed by `my_projects`. The site address works too (`https://clear-garden-vypm.layero.app` or just `clear-garden-vypm`) — note that the address host is NOT always the slug. | |
| redeploy | No | `true` — build the latest commit of the branch again as a NEW build, whatever state the previous one is in (also `ready`). Same as the «Пересобрать» button in the dashboard. Use it after changing project settings or environment variables, when there is nothing to push. Repository projects only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| project | Yes | ||
| deploy_id | Yes | ||
| next_action | Yes |