# org.tangled.ci.retryPipeline

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.retryPipeline)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.retryPipeline/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.retryPipeline/examples)

## Definitions

### `org.tangled.ci.retryPipeline`

**Type**: `procedure`

Duplicate existing pipeline for rerun.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `pipeline` | `string` (record-key) | Yes | pipeline id |
| `repo` | `string` (did) | Yes | git repository DID |
| `workflows` | `array` | No | Workflow names to filter. When not provided, entire pipeline will be duplicated. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `pipeline` | `string` (record-key) | Yes | Scheduled pipeline id |

#### Errors

- **PipelineNotFound**: Pipeline not found
- **PipelineNotRetryable**: Pipeline is still blocked or has no stored spec to rerun

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Duplicate existing pipeline for rerun.",
      "errors": [
        {
          "description": "Pipeline not found",
          "name": "PipelineNotFound"
        },
        {
          "description": "Pipeline is still blocked or has no stored spec to rerun",
          "name": "PipelineNotRetryable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pipeline": {
              "description": "pipeline id",
              "format": "record-key",
              "type": "string"
            },
            "repo": {
              "description": "git repository DID",
              "format": "did",
              "type": "string"
            },
            "workflows": {
              "description": "Workflow names to filter. When not provided, entire pipeline will be duplicated.",
              "items": {
                "description": "workflow name",
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "repo",
            "pipeline"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pipeline": {
              "description": "Scheduled pipeline id",
              "format": "record-key",
              "type": "string"
            }
          },
          "required": [
            "pipeline"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.tangled.ci.retryPipeline",
  "lexicon": 1
}
```
