# Step

name: Clone Repository
createdAt: 2026-01-02T16:24:41.960+00:00
updatedAt: 2026-01-02T16:24:41.960+00:00
createdBy: system
updatedBy: system
script:
  # 克隆指定commit的代码
  git init
  git remote add origin $REPOSITORY_URL
  git fetch --depth 1 origin $COMMIT_HASH
  git checkout -q FETCH_HEAD

  # 显示当前提交信息
  git log --oneline -1


name: Sparse Checkout Repository
createdAt: 2026-01-02T16:24:41.968+00:00
updatedAt: 2026-01-02T16:24:41.968+00:00
createdBy: system
updatedBy: system
script:
  # 进行稀疏检出指定目录的代码
  git init
  git remote add origin $REPOSITORY_URL
  git config core.sparseCheckout true
  echo "$SPARSE_CHECKOUT_PATHS" > .git/info/sparse-checkout
  git fetch --depth 1 origin $COMMIT_HASH
  git checkout -q FETCH_HEAD

  # 显示当前提交信息
  git log --oneline -1


name: Clone Repository
createdAt: 2026-01-02T16:24:41.972+00:00
updatedAt: 2026-01-02T16:24:41.972+00:00
createdBy: system
updatedBy: system
script:
  # 克隆指定commit的代码
  git init
  git remote add origin $REPOSITORY_URL
  git fetch --depth 1 origin $COMMIT_HASH
  git checkout -q FETCH_HEAD


# Deployment

branch: main
env: dev
status: success
commitHash: 9897bd04c2eabfc5ec2b5a2b6ad42a3ca84138af
startedAt: 2026-01-02T16:30:02.450+00:00
finishedAt: 2026-01-02T16:30:06.041+00:00
createdAt: 2026-01-02T16:30:02.450+00:00
updatedAt: 2026-01-02T16:30:06.042+00:00
createdBy: system
updatedBy: system
commitMessage:
  feat(server): 支持稀疏检出路径并完善部署执行队列

  - 在部署DTO中添加sparseCheckoutPaths字段支持稀疏检出路径
  - 数据模型Deployment新增稀疏检出路径字段及相关数据库映射
  - 部署创建时支持设置稀疏检出路径字段
  - 部署重试接口实现，支持复制原始部署记录并加入执行队列
  - 新增流水线模板初始化与基于模板创建流水线接口
  - 优化应用初始化流程，确保执行队列和流水线模板正确加载
  - 添加启动日志，提示执行队列初始化完成

buildLog:
  [2026-01-02T16:30:02.461Z] 检查工作目录状态: /Users/hurole/Desktop/foka-ci
  [2026-01-02T16:30:02.463Z] 工作目录状态: not_created
  [2026-01-02T16:30:02.463Z] 工作目录不存在或为空，开始克隆仓库
  [2026-01-02T16:30:06.030Z] 仓库克隆成功
  [2026-01-02T16:30:06.032Z] 开始执行步骤 1/1: 当前文件夹
  [2026-01-02T16:30:06.033Z] 执行脚本: pwd
  [2026-01-02T16:30:06.040Z] /Users/hurole/Desktop/foka-ci
  [2026-01-02T16:30:06.040Z] 步骤执行完成

  [2026-01-02T16:30:06.040Z] 步骤 "当前文件夹" 执行完成


