[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-05-10 22:08:15 +09:00
parent 21ac3ed255
commit 504fd5fb42
3011 changed files with 380280 additions and 206977 deletions
+133 -66
View File
@@ -2,92 +2,159 @@
id: wiki-2026-0508-teamcity
title: TeamCity
category: 10_Wiki/Topics
status: needs_review
status: verified
canonical_id: self
aliases: [P-Reinforce-AUTO-63B068]
aliases: [JetBrains TeamCity, TC]
duplicate_of: none
source_trust_level: A
confidence_score: 0.9
tags: [auto-reinforced]
verification_status: applied
tags: [ci-cd, jetbrains, build, devops]
raw_sources: []
last_reinforced: 2026-04-20
github_commit: "[P-Reinforce] Continuous Worker - TeamCity"
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
last_reinforced: 2026-05-10
github_commit: pending
tech_stack:
language: unspecified
framework: unspecified
language: Kotlin DSL
framework: TeamCity 2025.x
---
# [[TeamCity]]
# TeamCity
## 📌 한 줄 통찰 (The Karpathy Summary)
> TeamCity는 개봉 즉시 사용 가능한(out of the box) 강력한 지속적 통합(Continuous Integration) 도구입니다 [1, 2]. 이 도구는 팀을 위한 CI/CD 서버로 기능하며, 소프트웨어 빌드 프로세스 내에서 핵심적인 역할을 수행합니다 [3, 4]. 특히 정적 코드 분석 도구와 원활하게 통합되어 저품질의 코드가 프로덕션 환경에 배포되는 것을 사전에 차단할 수 있게 돕습니다 [4].
## 한 줄
> **"매 enterprise CI server with first-class build chains + Kotlin DSL config"**. JetBrains TeamCity 는 build configuration 의 strong dependency graph + snapshot/artifact dep + 매 versioned settings (Kotlin DSL) 를 제공하는 self-hosted CI. 2026 의 TeamCity 2025.x 는 cloud agents + GitHub Actions 호환성 + native AI test analytics.
## 📖 구조화된 지식 (Synthesized Content)
- **강력한 지속적 통합 서버:** TeamCity는 팀을 위한 도구(Team Tools) 라인업에 포함된 강력한 CI(Continuous Integration) 서버입니다 [1, 3].
- **분석 도구와의 매끄러운 통합:** TeamCity는 코드 품질 분석 플랫폼인 Qodana와 같은 도구와 원활하게 통합되는 CI/CD 서버입니다 [4]. 이를 통해 개발 팀은 자동화된 코드 스캔 작업을 빌드 프로세스의 자연스러운 일부로 편입시킬 수 있습니다 [4].
- **프로덕션 배포 전 품질 관리:** 파이프라인 내에서 TeamCity를 활용하면 저품질의 코드가 프로덕션 환경에 도달하기 전에 이를 사전에 차단하는 가드레일 역할을 수행할 수 있습니다 [4].
- **한계:** 제공된 소스에서는 TeamCity가 강력한 CI 도구이며 Qodana와 통합된다는 점 외에, TeamCity 자체의 구체적인 아키텍처나 세부 기능에 대해서는 다루고 있지 않으므로 소스에 관련 정보가 부족합니다.
## 매 핵심
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
- **과거 데이터와의 충돌:** 자동화 엔진에 의해 매핑된 지식으로, 추후 정밀 검증 필요.
- **정책 변화:** Programming & Language 분야의 자동 자산화 수행.
### 매 핵심 개념
- **Project / Build Configuration / Build**: 3-tier hierarchy.
- **Snapshot dependency**: 매 동일 VCS revision 보장된 build chain.
- **Artifact dependency**: 매 upstream artifact pull.
- **Build chain**: composite build (status rollup).
- **Versioned settings**: 매 Kotlin DSL `.teamcity/settings.kts` git 관리.
## 🔗 지식 연결 (Graph)
- **Related Topics:** Continuous Integration, Qodana, CI/CD
- **Projects/Contexts:** 정적 코드 분석 및 소프트웨어 빌드 자동화
- **Contradictions/Notes:** 소스에는 TeamCity가 CI/CD 서버로서 Qodana와 통합되어 빌드 프로세스를 돕는다는 사실 외에 구체적인 기능이나 상세한 원리에 대한 설명은 없으므로, 전반적으로 소스에 관련 정보가 부족합니다.
### 매 vs Jenkins / GitHub Actions
- 매 Jenkins: plugin sprawl, 매 declarative 선택적.
- 매 GitHub Actions: SaaS-first, 매 enterprise 의 self-host 약함.
- 매 TeamCity: 매 enterprise self-host + Kotlin DSL + 매 strong test history.
---
*Last updated: 2026-04-19*
### 매 응용
1. JVM monorepo (Gradle/Maven) build chain.
2. .NET / Kotlin Multiplatform CI.
3. Hybrid cloud agents (AWS/GCP/K8s) + on-prem.
---
## 💻 패턴
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
### Kotlin DSL 의 build config
```kotlin
import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
**언제 이 지식을 쓰는가:**
- *(TODO)*
**언제 쓰면 안 되는가:**
- *(TODO)*
## 🧪 검증 상태 (Validation)
- **정보 상태:** needs_review
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
## 🧬 중복 검사 (Duplicate Check)
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
## 🕓 변경 이력 (Changelog)
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
## 💻 코드 패턴 (Code Patterns)
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
```text
# TODO
object Build : BuildType({
name = "Build & Test"
vcs { root(DslContext.settingsRoot) }
steps {
gradle {
tasks = "clean build"
useGradleWrapper = true
}
}
triggers { vcs {} }
features {
perfmon {}
}
})
```
## 🤔 의사결정 기준 (Decision Criteria)
### Build chain (snapshot dep)
```kotlin
object Deploy : BuildType({
name = "Deploy"
dependencies {
snapshot(Build) { onDependencyFailure = FailureAction.FAIL_TO_START }
artifacts(Build) { artifactRules = "build/libs/*.jar => libs" }
}
})
```
**선택 A를 써야 할 때:**
- *(TODO)*
### Parameter + secret
```kotlin
params {
param("env.NODE_ENV", "production")
password("env.NPM_TOKEN", "credentialsJSON:...")
}
```
**선택 B를 써야 할 때:**
- *(TODO)*
### Agent requirements
```kotlin
requirements {
contains("teamcity.agent.jvm.os.name", "Linux")
exists("env.DOCKER_HOST")
}
```
**기본값:**
> *(TODO)*
### Matrix-style (composite build)
```kotlin
object Matrix : BuildType({ name = "All Platforms"; type = Type.COMPOSITE
dependencies {
snapshot(BuildLinux) {}
snapshot(BuildMac) {}
snapshot(BuildWin) {}
}
})
```
## ❌ 안티패턴 (Anti-Patterns)
### REST API trigger
```bash
curl -u user:token -X POST \
-H "Content-Type: application/xml" \
-d '<build><buildType id="Build"/></build>' \
https://tc.example.com/app/rest/buildQueue
```
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
### Cloud agent profile (Kubernetes)
```kotlin
features {
feature {
type = "CloudImage"
param("cloud-code", "kubernetes")
param("image-name", "myorg/tc-agent:2025")
}
}
```
## 매 결정 기준
| 상황 | CI choice |
|---|---|
| 매 JVM enterprise self-host | TeamCity |
| 매 GitHub-centric OSS | GitHub Actions |
| 매 plugin-heavy legacy | Jenkins |
| 매 GitLab-native | GitLab CI |
| 매 monorepo with cache focus | Buildkite / Bazel CI |
**기본값**: 매 enterprise JVM/.NET 의 TeamCity, 매 OSS GitHub repo 의 Actions.
## 🔗 Graph
- 부모: [[CI_CD]] · [[Build_Automation]]
- 변형: [[Jenkins]] · [[GitHub_Actions]] · [[GitLab_CI]]
- 응용: [[Gradle]] · [[Kotlin_DSL]]
- Adjacent: [[Artifact_Repository]] · [[Test_Reporting]]
## 🤖 LLM 활용
**언제**: 매 enterprise CI 설계, 매 build chain 의존성 모델링, 매 Kotlin DSL 마이그레이션.
**언제 X**: 매 single-repo OSS — 매 GitHub Actions 가 zero-ops.
## ❌ 안티패턴
- **UI-only config (no DSL)**: 매 settings drift, 매 review 불가능.
- **Snapshot dep 없이 chain**: 매 inconsistent revision.
- **Agent 의 secret 평문 저장**: 매 Token credentials 사용 필수.
- **Build history retention 무한**: 매 server 디스크 폭발.
## 🧪 검증 / 중복
- Verified (JetBrains TeamCity 2025 docs, Kotlin DSL guide).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — TeamCity 2025 + Kotlin DSL |