# Step

name: Clone Repository
createdAt: 2025-12-12T14:14:34.292+00:00
updatedAt: 2025-12-12T14:14:34.292+00:00
createdBy: system
updatedBy: system
script:
  # 在项目目录下克隆指定commit的代码
  cd $PROJECT_DIR
  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: 2025-12-12T14:14:34.296+00:00
updatedAt: 2025-12-12T14:14:34.296+00:00
createdBy: system
updatedBy: system
script:
  # 在项目目录下进行稀疏检出指定目录的代码
  cd $PROJECT_DIR
  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: 2025-12-12T14:14:34.299+00:00
updatedAt: 2025-12-12T14:14:34.299+00:00
createdBy: system
updatedBy: system
script:
  # 在项目目录下克隆指定commit的代码
  cd $PROJECT_DIR
  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: failed
commitHash: 73240d94b1950ed354ad5c5b7e422ec49d19ffa3
commitMessage: refactor: remove pipeline DTO and type definitions
startedAt: 2025-12-12T14:45:45.617+00:00
createdAt: 2025-12-12T14:45:45.617+00:00
updatedAt: 2025-12-12T14:46:12.481+00:00
createdBy: system
updatedBy: system
buildLog:
  [2025-12-12T14:46:12.455Z] 开始执行步骤 1/1: "Sparse Checkout Repository"
  [脚本内容]: echo $PROJECT_NAME
  [2025-12-12T14:46:12.480Z] Error: /bin/bash: echo $PROJECT_NAME: command not found

      at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
      exit code: 127 (Command not found)


branch: main
env: dev
status: failed
commitHash: 73240d94b1950ed354ad5c5b7e422ec49d19ffa3
commitMessage: refactor: remove pipeline DTO and type definitions
startedAt: 2025-12-12T14:55:52.719+00:00
createdAt: 2025-12-12T14:55:52.719+00:00
updatedAt: 2025-12-12T14:56:05.115+00:00
createdBy: system
updatedBy: system
buildLog:
  [2025-12-12T14:56:05.103Z] 开始执行步骤 1/1: "Sparse Checkout Repository"
  [脚本内容]: echo $PROJECT_NAME
  [2025-12-12T14:56:05.114Z] Error: /bin/bash: echo $PROJECT_NAME: command not found

      at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
      exit code: 127 (Command not found)


branch: main
env: dev
status: success
commitHash: 73240d94b1950ed354ad5c5b7e422ec49d19ffa3
commitMessage: refactor: remove pipeline DTO and type definitions
startedAt: 2025-12-12T15:02:28.695+00:00
finishedAt: 2025-12-12T15:02:28.731+00:00
createdAt: 2025-12-12T15:02:28.695+00:00
updatedAt: 2025-12-12T15:02:28.732+00:00
createdBy: system
updatedBy: system
buildLog:
  [2025-12-12T15:02:28.711Z] 开始执行步骤 1/1: "Sparse Checkout Repository"
  [脚本内容]: echo $PROJECT_NAME
  foka-ci

  [2025-12-12T15:02:28.730Z] 步骤 "Sparse Checkout Repository" 执行完成


branch: main
env: dev
status: success
commitHash: 73240d94b1950ed354ad5c5b7e422ec49d19ffa3
commitMessage: refactor: remove pipeline DTO and type definitions
startedAt: 2025-12-12T15:12:50.697+00:00
finishedAt: 2025-12-12T15:12:50.743+00:00
createdAt: 2025-12-12T15:12:50.697+00:00
updatedAt: 2025-12-12T15:12:50.745+00:00
createdBy: system
updatedBy: system
buildLog:
  [2025-12-12T15:12:50.717Z] 开始执行步骤 1/1: Sparse Checkout Repository
  foka-ci

  [2025-12-12T15:12:50.742Z] 步骤 "Sparse Checkout Repository" 执行完成


