Buildkite 파이프라인 컨버터 개요
Buildkite 파이프라인 컨버터는 호환성 계층 역할을 해서, 기존 CI 구성을 Buildkite의 파이프라인 정의와 호환되는 형식으로 변환해 볼 수 있게 해줘요. 완전한 자동화 마이그레이션 솔루션이라기보다, 다른 CI/CD 플랫폼의 구성을 Buildkite 파이프라인 구성 형식으로 어떻게 구조화할 수 있는지 보여주는 도구예요. 이번 장에서 CLI와 웹 버전 사용법을 함께 알아볼게요.
출처: 문서
본문
Buildkite 파이프라인 컨버터는 호환성 계층 역할을 해서 기존 CI 구성을 Buildkite의 파이프라인 정의와 호환되는 형식으로 변환해 볼 수 있게 해줘요.
완전한 자동화 마이그레이션 솔루션으로 작동하기보다, Buildkite 파이프라인 컨버터는 다른 CI/CD 플랫폼의 구성을 Buildkite 파이프라인 구성 형식으로 어떻게 구조화할 수 있는지 보여줘요.
변환 과정에서 최상의 결과를 얻기 위해 AI 대규모 언어 모델(LLM)을 사용해요. AI 모델은 제출된 데이터를 자체 학습에 사용하지 않아요.
CLI Buildkite 파이프라인 컨버터
Buildkite CLI는 터미널에서 직접 지원되는 제공자의 CI 구성을 변환할 수 있는 bk pipeline convert 명령을 제공해요. 이것은 마이그레이션 워크플로의 일부로 파이프라인 컨버터를 사용하는 권장 방법이에요.
호환성
Buildkite 파이프라인 컨버터는 다음 CI 제공자를 지원해요.
- GitHub Actions
- CircleCI
- Bitbucket Pipelines
- Jenkins
- Bitrise (베타)
- GitLab CI (베타)
- Harness (베타)
변환 예시
다음 GitHub Actions 워크플로는:
name: Node.js CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- name: Build application
run: npm run build
Buildkite 파이프라인 컨버터가 다음 Buildkite 파이프라인으로 변환할 거예요.
# ============================================================================
# Translated from: Node.js CI
# ============================================================================
#
# TRIGGERS: Configure in Buildkite UI → Pipeline Settings → GitHub
# - Push to branches: main, develop
# - Pull requests to: main
#
# AGENT CONFIGURATION REQUIRED
# ============================================================================
# The original workflow used the following GitHub Actions runners:
#
# Job | runs-on
# ---------------------|----------------
# build | ubuntu-latest
#
# You must configure Buildkite agents to handle these workloads. Add an
# `agents` block to each step once your queues are set up. Example:
#
# agents:
# queue: "linux"
#
# Required tools on agents: Node.js 18.x, 20.x, npm
# Alternatively, use the Docker plugin with appropriate images.
# ============================================================================
steps:
- label: "\:nodejs\: Build & Test node-{{matrix.node}}"
key: "build-node-{{matrix.node}}"
# Assumes Node.js is installed on the agent.
# If not available, use the Docker plugin:
# plugins:
# - docker#5.13.0:
# image: "node:{{matrix.node}}"
# propagate-environment: true
plugins:
- cache#1.8.1:
manifest: package-lock.json
path: node_modules
restore: pipeline
save: pipeline
command: |
npm ci
npm run lint
npm test
npm run build
matrix:
setup:
node:
- "18.x"
- "20.x"
CLI Buildkite 파이프라인 컨버터 사용 방법
기존 CI 구성을 변환하려면 Buildkite CLI의 bk pipeline convert 명령을 사용해요.
-
아직 설치하지 않았다면 Buildkite CLI를 설치해요.
brew install buildkite/buildkite/bk -
--file로 CI 구성 파일의 경로를,--vendor로 원본 CI 제공자를 지정해서bk pipeline convert명령을 실행해요.# For a GitHub Actions workflow bk pipeline convert -F .github/workflows/ci.yml # Alternatively bk pipeline convert --file .github/workflows/ci.yml --vendor github # If you want to specify a custom output path and filename bk pipeline convert --file .github/workflows/ci.yml --vendor github -o .buildkite/custom-converted-pipeline-name.yml--file플래그 대신 stdin에서 구성 파일을 파이프할 수도 있어요. stdin에서 파이프할 때는--vendor플래그를 반드시 지정해야 하고, 변환된 출력은 기본적으로 stdout으로 출력돼요.cat .github/workflows/ci.yml | bk pipeline convert --vendor github파이프된 출력을 파일로 저장하려면
--output(-o) 플래그를 사용해요.cat .github/workflows/ci.yml | bk pipeline convert --vendor github -o .buildkite/pipeline.yml지원되는 vendor:
github,bitbucket,circleci,jenkins,gitlab,harness,bitrise.컨버터가 파일 경로나 이름에서 vendor를 감지할 수 있다면
--vendor플래그를 생략할 수 있어요.Error: could not detect vendor from file path. Please specify vendor explicitly with --vendor같은 오류가 보이면 vendor를 지정해야 해요. -
변환에 성공하면 기본적으로 출력은
.buildkite/에 저장돼요. stdin에서 읽을 때는 출력이 대신 stdout으로 출력돼요.Submitting conversion job... Job submitted. Processing conversion... ✅ conversion completed successfully! Output saved to: .buildkite/pipeline.github.yml
--vendor와 --output(-o) 외에도 Buildkite 파이프라인 컨버터가 지원하는 다른 플래그는 --timeout과 --debug예요.
더 많은 정보와 플래그 사용 예시는 bk pipeline convert 명령의 CLI 참조를 확인해요.
대화형 웹 버전
Buildkite 파이프라인 컨버터를 빠르게 시도해 보려면 대화형 웹 버전을 사용할 수도 있어요.
웹 Buildkite 파이프라인 컨버터 사용 방법
웹 버전을 사용해 기존 파이프라인 또는 워크플로 구성을 Buildkite 파이프라인으로 변환하려면:
- 새 브라우저 탭에서 Buildkite 파이프라인 컨버터를 열어요.
- 드롭다운 목록에서 CI/CD 플랫폼을 선택해요.
- 왼쪽 패널에 Buildkite 파이프라인 정의로 변환할 파이프라인 정의를 입력해요.
- Convert 버튼을 클릭하면 오른쪽 패널에 변환된 파이프라인 정의가 표시돼요.
- 오른쪽의 결과 Buildkite 파이프라인 YAML 구성을 복사해서 새 Buildkite 파이프라인을 생성해요.
🚧 변환 오류 Buildkite 파이프라인으로 변환하려는 파이프라인 구성에 문법 또는 기타 오류가 있거나 유효한 파이프라인 구성이 아니면 "This doesn't look like valid YAML. Please paste your pipeline configuration." 오류 메시지가 표시돼요. 이 경우 마이그레이션하는 CI/CD 플랫폼에 대해 Buildkite 파이프라인으로 변환하는 원본 파이프라인 구성이 유효한 파이프라인 정의인지 확인해요.
다음 단계
Buildkite 파이프라인 컨버터는 독립형 도구로 사용하거나 Buildkite Migration Services 프로세스에 통합할 수 있어요. 기존 CI 구성을 Buildkite 생태계에서 활용할 수 있는 방법을 제공하죠.
기존 CI/CD 플랫폼에서 Buildkite으로 마이그레이션하는 더 많은 도구와 권장사항은 다음을 참고해요.
- Buildkite Pipelines로 마이그레이션
- GitHub Actions에서 마이그레이션 - 단계별 가이드
- 지원되는 GitHub Actions 워크플로를 Buildkite에서 실행
- Jenkins에서 마이그레이션 - 단계별 가이드
- Bamboo에서 마이그레이션 - 단계별 가이드