download_build_artifact
Download a build artifact from TeamCity by path, with support for base64, text, or streaming output. Specify build ID or number for precise retrieval.
Instructions
Download a single build artifact, with base64, text, or streaming output. Returns the artifact bytes or stream metadata; returns 404 if the build or path is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildId | No | Build ID (internal TeamCity ID) | |
| buildNumber | No | Human-readable build number (requires buildTypeId) | |
| buildTypeId | No | Build configuration ID (required when using buildNumber) | |
| artifactPath | Yes | Artifact path or name | |
| encoding | No | Response encoding: 'base64' (default), 'text', or 'stream' | base64 |
| maxSize | No | Maximum artifact size (bytes) allowed before aborting | |
| outputPath | No | Optional absolute path to write streamed content; defaults to a temp file when streaming |