AgentSkillsCN

teamcity-cli

在使用TeamCity CI/CD时使用此工具。可通过`tc` CLI进行构建、日志查看、作业管理、队列监控以及流水线操作。

SKILL.md
--- frontmatter
name: teamcity-cli
description: Use when working with TeamCity CI/CD. Use `tc` CLI for builds, logs, jobs, queues, and pipelines.

TeamCity CLI (tc)

Interact with TeamCity CI/CD servers using the tc command-line tool.

Quick Start

bash
tc auth status                    # Check authentication
tc run list --status failure      # Find failed builds
tc run log <id> --failed          # View failed build log

Core Commands

TaskCommand
List buildstc run list
View logtc run log <id>
Start buildtc run start <job-id>
Watch buildtc run watch <id>
List jobstc job list
List projectstc project list
View queuetc queue list
Raw APItc api <endpoint>

Common Workflows

Investigate failure: tc run list --status failuretc run log <id> --failedtc run tests <id> --failed

Start build: tc run start <job-id> --branch <branch> --watch

Find jobs: tc project listtc job list --project <id>

References