Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/TencentBlueKing/bk-ci int…
Browse files Browse the repository at this point in the history
…o feat_10479

# Conflicts:
#	src/backend/ci/core/common/common-pipeline/src/main/kotlin/com/tencent/devops/common/pipeline/extend/ModelCheckPlugin.kt
#	src/backend/ci/core/process/api-process/src/main/kotlin/com/tencent/devops/process/constant/ProcessMessageCode.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/atom/plugin/IElementBizPluginService.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/atom/plugin/MarketBuildAtomElementBizPlugin.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/atom/plugin/MarketBuildLessAtomElementBizPlugin.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/atom/plugin/SubPipelineCallElementBizPlugin.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/extend/DefaultModelCheckPlugin.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/engine/service/PipelineRepositoryService.kt
#	src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/plugin/ElementBizPlugin.kt
#	src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/plugin/trigger/element/TimerTriggerElementBizPlugin.kt
#	src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/service/SubPipelineElementBizPluginService.kt
#	src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/service/SubPipelineStartUpService.kt
#	src/backend/ci/core/process/biz-process/src/main/kotlin/com/tencent/devops/process/webhook/WebHookTriggerElementBizPlugin.kt
  • Loading branch information
hejieehe committed Sep 5, 2024
2 parents e9c99cf + 3759f6e commit 30d718a
Show file tree
Hide file tree
Showing 785 changed files with 25,543 additions and 10,412 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Frontend CI

on:
push:
branches: [master]
branches: ["*"]
paths:
- "src/frontend/**"
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_artifactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_artifactory

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_artifactory 的数据库文档
| 表名 | 说明 |
Expand Down
80 changes: 79 additions & 1 deletion docs/overview/db/devops_ci_auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_auth

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_auth 的数据库文档
| 表名 | 说明 |
Expand All @@ -27,8 +27,12 @@
| T_AUTH_OAUTH2_SCOPE | 授权范围表 |
| T_AUTH_OAUTH2_SCOPE_OPERATION | 授权操作信息表 |
| T_AUTH_RESOURCE | 资源表 |
| T_AUTH_RESOURCE_AUTHORIZATION | 资源授权管理表 |
| T_AUTH_RESOURCE_GROUP | 资源关联用户组表 |
| T_AUTH_RESOURCE_GROUP_APPLY | 用户组申请记录表 |
| T_AUTH_RESOURCE_GROUP_CONFIG | 资源用户组配置表 |
| T_AUTH_RESOURCE_GROUP_MEMBER | 资源组成员 |
| T_AUTH_RESOURCE_SYNC | 同步 IAM 资源 |
| T_AUTH_RESOURCE_TYPE | 权限资源类型表 |
| T_AUTH_STRATEGY | 权限策略表 |
| T_AUTH_TEMPORARY_VERIFY_RECORD | 迁移-鉴权记录表 |
Expand Down Expand Up @@ -375,6 +379,25 @@
| 11 | CREATE_USER | varchar | 64 | 0 | N | N | | 创建者 |
| 12 | UPDATE_USER | varchar | 64 | 0 | N | N | | 修改人 |

**表名:** <a>T_AUTH_RESOURCE_AUTHORIZATION</a>

**说明:** 资源授权管理表

**数据列:**

| 序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | ID | bigint | 20 | 0 | N | Y | | 主键 ID |
| 2 | PROJECT_CODE | varchar | 32 | 0 | N | N | | 项目 ID |
| 3 | RESOURCE_TYPE | varchar | 32 | 0 | N | N | | 资源类型 |
| 4 | RESOURCE_CODE | varchar | 255 | 0 | N | N | | 资源 ID |
| 5 | RESOURCE_NAME | varchar | 255 | 0 | N | N | | 资源名 |
| 6 | HANDOVER_FROM | varchar | 64 | 0 | N | N | | 授予人 |
| 7 | HANDOVER_FROM_CN_NAME | varchar | 64 | 0 | N | N | | 授予人中文名称 |
| 8 | HANDOVER_TIME | timestamp | 19 | 0 | N | N | CURRENT_TIMESTAMP | 授予时间 |
| 9 | CREATE_TIME | timestamp | 19 | 0 | Y | N | CURRENT_TIMESTAMP | 创建时间 |
| 10 | UPDATE_TIME | timestamp | 19 | 0 | Y | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_AUTH_RESOURCE_GROUP</a>

**说明:** 资源关联用户组表
Expand All @@ -395,6 +418,25 @@
| 10 | RELATION_ID | varchar | 32 | 0 | N | N | | 关联的 IAM 组 ID |
| 11 | CREATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 创建时间 |
| 12 | UPDATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |
| 13 | DESCRIPTION | varchar | 512 | 0 | Y | N | | 用户组描述 |
| 14 | IAM_TEMPLATE_ID | int | 10 | 0 | Y | N | | 人员模板 ID |

**表名:** <a>T_AUTH_RESOURCE_GROUP_APPLY</a>

**说明:** 用户组申请记录表

**数据列:**

| 序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | ID | bigint | 20 | 0 | N | Y | | 主键 ID |
| 2 | PROJECT_CODE | varchar | 64 | 0 | N | N | | 项目 ID |
| 3 | MEMBER_ID | varchar | 64 | 0 | N | N | | 成员 ID |
| 4 | IAM_GROUP_ID | int | 10 | 0 | N | N | | IAM 组 ID |
| 5 | STATUS | int | 10 | 0 | Y | N | 0 | 状态,0-审批中,1-审批成功,2-审批超时 |
| 6 | NUMBER_OF_CHECKS | int | 10 | 0 | Y | N | 0 | 检查次数,用于同步组数据 |
| 7 | CREATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 创建时间 |
| 8 | UPDATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_AUTH_RESOURCE_GROUP_CONFIG</a>

Expand All @@ -416,6 +458,42 @@
| 10 | CREATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 创建时间 |
| 11 | UPDATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_AUTH_RESOURCE_GROUP_MEMBER</a>

**说明:** 资源组成员

**数据列:**

| 序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | ID | bigint | 20 | 0 | N | Y | | 主键 ID |
| 2 | PROJECT_CODE | varchar | 64 | 0 | N | N | | 项目 ID |
| 3 | RESOURCE_TYPE | varchar | 32 | 0 | N | N | | 资源类型 |
| 4 | RESOURCE_CODE | varchar | 255 | 0 | N | N | | 资源 ID |
| 5 | GROUP_CODE | varchar | 32 | 0 | N | N | | 用户组标识 |
| 6 | IAM_GROUP_ID | int | 10 | 0 | N | N | | IAM 组 ID |
| 7 | MEMBER_ID | varchar | 64 | 0 | N | N | | 成员 ID |
| 8 | MEMBER_NAME | varchar | 512 | 0 | N | N | | 成员名 |
| 9 | MEMBER_TYPE | varchar | 32 | 0 | N | N | | 成员类型,用户/组织/模板 |
| 10 | EXPIRED_TIME | datetime | 19 | 0 | N | N | | 过期时间 |
| 11 | CREATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 创建时间 |
| 12 | UPDATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_AUTH_RESOURCE_SYNC</a>

**说明:** 同步 IAM 资源

**数据列:**

| 序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | PROJECT_CODE | varchar | 64 | 0 | N | Y | | 项目 ID |
| 2 | STATUS | int | 10 | 0 | Y | N | 0 | 迁移状态,0-同步中,1-同步成功,2-同步失败 |
| 3 | ERROR_MESSAGE | text | 65535 | 0 | Y | N | | 错误信息 |
| 4 | TOTAL_TIME | bigint | 20 | 0 | Y | N | | 总耗时 |
| 5 | CREATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 创建时间 |
| 6 | UPDATE_TIME | datetime | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_AUTH_RESOURCE_TYPE</a>

**说明:** 权限资源类型表
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_dispatch

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_dispatch 的数据库文档
| 表名 | 说明 |
Expand Down
17 changes: 16 additions & 1 deletion docs/overview/db/devops_ci_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

**数据库名:** devops_ci_environment

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_environment 的数据库文档
| 表名 | 说明 |
| :---: | :---: |
| T_AGENT_BATCH_INSTALL_TOKEN | |
| T_AGENT_FAILURE_NOTIFY_USER | |
| T_AGENT_PIPELINE_REF | |
| T_AGENT_SHARE_PROJECT | |
Expand All @@ -21,6 +22,20 @@
| T_NODE | 节点信息表 |
| T_PROJECT_CONFIG | |

**表名:** <a>T_AGENT_BATCH_INSTALL_TOKEN</a>

**说明:**

**数据列:**

| 序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 1 | PROJECT_ID | varchar | 64 | 0 | N | Y | | 项目 ID |
| 2 | USER_ID | varchar | 64 | 0 | N | Y | | token 用户 |
| 3 | TOKEN | varchar | 64 | 0 | N | N | | Base64 编码后 TOKEN |
| 4 | CREATED_TIME | datetime | 19 | 0 | N | N | | 创建时间 |
| 5 | EXPIRED_TIME | datetime | 19 | 0 | N | N | | 过期时间 |

**表名:** <a>T_AGENT_FAILURE_NOTIFY_USER</a>

**说明:**
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_image

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_image 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_log

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_log 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_notify.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_notify

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_notify 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_op.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_op

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_op 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_openapi

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_openapi 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_plugin

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_plugin 的数据库文档
| 表名 | 说明 |
Expand Down
9 changes: 7 additions & 2 deletions docs/overview/db/devops_ci_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_process

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_process 的数据库文档
| 表名 | 说明 |
Expand Down Expand Up @@ -177,6 +177,7 @@
| 14 | CONTAINER_HASH_ID | varchar | 64 | 0 | Y | N | | 容器全局唯一 ID |
| 15 | MATRIX_GROUP_FLAG | bit | 1 | 0 | Y | N | | 是否为构建矩阵 |
| 16 | MATRIX_GROUP_ID | varchar | 64 | 0 | Y | N | | 所属的矩阵组 ID |
| 17 | JOB_ID | varchar | 128 | 0 | Y | N | | jobid |

**表名:** <a>T_PIPELINE_BUILD_DETAIL</a>

Expand Down Expand Up @@ -403,6 +404,7 @@
| 16 | START_TIME | datetime | 23 | 0 | Y | N | | 开始时间 |
| 17 | END_TIME | datetime | 23 | 0 | Y | N | | 结束时间 |
| 18 | TIMESTAMPS | text | 65535 | 0 | Y | N | | 运行中产生的时间戳集合 |
| 19 | ASYNC_STATUS | varchar | 32 | 0 | Y | N | | 插件异步执行状态 |

**表名:** <a>T_PIPELINE_BUILD_STAGE</a>

Expand Down Expand Up @@ -491,6 +493,7 @@
| 28 | PLATFORM_ERROR_CODE | int | 10 | 0 | Y | N | | 对接平台错误码 |
| 29 | CONTAINER_HASH_ID | varchar | 64 | 0 | Y | N | | 构建 Job 唯一标识 |
| 30 | STEP_ID | varchar | 64 | 0 | Y | N | | 标识上下文的自定义 ID |
| 31 | JOB_ID | varchar | 128 | 0 | Y | N | | jobid |

**表名:** <a>T_PIPELINE_BUILD_TEMPLATE_ACROSS_INFO</a>

Expand Down Expand Up @@ -595,6 +598,7 @@
| 16 | PIPELINE_NAME_PINYIN | varchar | 1300 | 0 | Y | N | | 流水线名称拼音 |
| 17 | LATEST_START_TIME | datetime | 23 | 0 | Y | N | | 最近启动时间 |
| 18 | LATEST_VERSION_STATUS | varchar | 64 | 0 | Y | N | | 最新分布版本状态 |
| 19 | LOCKED | bit | 1 | 0 | Y | N | b'0' | 是否锁定,PACv3.0 新增锁定,取代原来 setting 表中的 LOCK |

**表名:** <a>T_PIPELINE_JOB_MUTEX_GROUP</a>

Expand Down Expand Up @@ -775,7 +779,8 @@
| 18 | STATUS | varchar | 16 | 0 | Y | N | | 版本状态 |
| 19 | BRANCH_ACTION | varchar | 32 | 0 | Y | N | | 分支状态 |
| 20 | DESCRIPTION | text | 65535 | 0 | Y | N | | 版本变更说明 |
| 21 | UPDATE_TIME | timestamp | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |
| 21 | UPDATER | varchar | 64 | 0 | Y | N | | 最近更新人 |
| 22 | UPDATE_TIME | timestamp | 19 | 0 | N | N | CURRENT_TIMESTAMP | 更新时间 |

**表名:** <a>T_PIPELINE_RULE</a>

Expand Down
3 changes: 2 additions & 1 deletion docs/overview/db/devops_ci_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_project

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_project 的数据库文档
| 表名 | 说明 |
Expand Down Expand Up @@ -392,6 +392,7 @@
| 26 | new_window | bit | 1 | 0 | Y | N | b'0' | 是否打开新标签页 |
| 27 | new_windowUrl | varchar | 200 | 0 | Y | N | | 新标签页地址 |
| 28 | cluster_type | varchar | 32 | 0 | N | N | | 集群类型 |
| 29 | DOC_URL | varchar | 255 | 0 | N | N | | 文档链接 |

**表名:** <a>T_SERVICE_TYPE</a>

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_quality

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_quality 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_repository

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_repository 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_sign.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_sign

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_sign 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_store.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_store

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_store 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/db/devops_ci_ticket.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**数据库名:** devops_ci_ticket

**文档版本:** 1.0.2
**文档版本:** 1.0.4

**文档描述:** devops_ci_ticket 的数据库文档
| 表名 | 说明 |
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/core/ci/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ dependencies:
repository: file://./local_chart/kubernetes-management
version: 0.0.45
digest: sha256:bb11b7ac0e3487504f5563cd2b170d04038fc8971aaecbaca3dc5ecdcb792a43
generated: "2024-06-21T18:05:57.191350067+08:00"
generated: "2024-08-15T12:18:41.358254786+08:00"
6 changes: 4 additions & 2 deletions helm-charts/core/ci/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ kubernetes-manager:
targetCPU: 80
targetMemory: 80
# 使用的镜像
image: bkci/bkci-kubernetes-manager:0.0.31
image: bkci/bkci-kubernetes-manager:0.0.33
# 决定每次helm部署时的构建机所在的命名空间,同时dockerInitSh也在那里,为空时默认为 {{ .Release.Namespace }}
builderNamespace:
redis:
Expand All @@ -412,11 +412,13 @@ kubernetes-manager:
apiToken:
key: Devops-Token
value: landun
rsaPrivateKey: |
rsaPrivateKey: ""
volumeMount:
# 流水线构建工作空间和agent日志在容器内的挂载点
dataPath: /data/devops/workspace
logPath: /data/devops/logs
docker:
enable: true
dockerInit:
# 是否使用当前chart的 dockerinit.sh
useDockerInit: true
Expand Down
Binary file modified helm-charts/core/ci/charts/kubernetes-manager-0.0.45.tgz
Binary file not shown.
Loading

0 comments on commit 30d718a

Please sign in to comment.