发布计划
本文主要介绍如何使用 Zadig 的发布计划功能,包括发布计划的规划、审批和执行,以及追踪详细的操作记录。
# 规划
访问管理 -> 发布计划,新建发布计划并填写内容后保存草稿即可,支持多人协同合作规划发布计划。

参数说明:
名称:发布计划名称发布负责人:负责此次发布的负责人,发布计划制定后,仅负责人可执行发布发布窗口期:可以进行发布操作的时间窗口定时执行:在指定时间执行发布项中的工作流需求关联:发布关联的需求清单,支持关联多个 JIRA 冲刺发布内容:具体的发布内容,可创建多个,每一个发布项可指定负责人,可指定负责人可操作执行。发布项包含富文本和工作流两种类型富文本类型:输入内容工作流类型:选择 Zadig 中的项目和工作流,按需配置工作流参数
审批配置:按需配置审批,支持 Zadig、飞书、钉钉三种审批方式
# 审批
适用于发布计划中包含审批配置的场景。
发布负责人提交审批后,由审批人负责审批。审批通过后发布负责人才可以操作发布。
提示
如果审批拒绝,可再次编辑发布计划的内容,重新规划发布计划。

# 执行
提示
- 在发布时间窗口内可操作执行。
- 仅发布负责人可操作执行。
对于富文本类型的发布内容,点击右侧的完成,输入发布备注即可。

对于工作流类型的发布内容,点击右侧的执行即可自动触发工作流执行,点击链接可跳转查看工作流执行详情。


对于需要跳过执行的发布项,可点跳过,所有发布项完成执行或者跳过,发布计划自动为完成。
# 操作记录
系统中详细记录了发布计划的操作日志,点击操作记录即可查看。

# Hook 外部系统与 CallBack
# Hook 外部系统
请求
POST
1
body 参数说明
| 参数名 | 类型 | 描述 |
|---|---|---|
id | string | 发布计划 id |
index | string | 发布计划索引 |
name | string | 发布计划名称 |
event_name | string | 事件名称,枚举值:finish_planning, start_execute, all_job_done |
description | string | 需求关联 |
manager | string | 发布负责人 |
manager_id | string | 发布负责人 ID |
instance_code | string | 实例 Code(每次编辑后不同) |
start_time | int | 发布窗口期-开始时间 |
end_time | int | 发布窗口期-结束时间 |
schedule_execute_time | int | 定时执行时间 |
approval_time | int | 审批时间 |
planning_time | int | 规划时间 |
executing_time | int | 执行时间 |
success_time | int | 成功时间 |
status | string | 状态 |
jobs | []HookReleasePlanJob | 发布内容列表 |
created_by | string | 创建者 |
create_time | int | 创建时间 |
updated_by | string | 更新者 |
update_time | int | 更新时间 |
发布计划状态说明
| 名称 | 描述 |
|---|---|
planning | 规划中 |
finish_planning | 规划完成 |
wait_for_approval | 等待审批 |
executing | 执行中 |
denied | 拒绝 |
timeout | 超时 |
success | 成功 |
wait_for_finish_planning_external_check | 等待规划完成的外部检测 |
wait_for_execute_external_check | 等待执行的外部检测 |
wait_for_all_done_external_check | 等待发布项全部完成的外部检测 |
wait_for_finish_planning_external_check_failed | 等待规划完成的外部检测失败 |
wait_for_execute_external_check_failed | 等待执行的外部检测失败 |
wait_for_all_done_external_check_failed | 等待发布项全部完成的外部检测失败 |
cancel | 取消 |
HookReleasePlanJob 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
id | string | 发布任务 id |
name | string | 发布任务名称 |
status | string | 发布任务状态 |
type | string | 发布任务类型,包括 text 和 workflow |
spec | ReleaseJobSpec | 发布任务规格,当类型为 text 时规格为 TextReleasePlanJob,当类型为 workflow 时规格为 WorkflowReleasePlanJob |
executed_by | string | 执行人 |
executed_time | string | 执行时间 |
发布计划任务状态说明
| 名称 | 描述 |
|---|---|
todo | 未开始 |
done | 完成 |
skipped | 已跳过 |
failed | 拒绝 |
running | 运行中 |
TextReleasePlanJob 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
content | string | 内容 |
remark | string | 备注 |
WorkflowReleasePlanJob 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
workflow | Workflow | 工作流 |
status | string | 任务状态包括:created(创建中)、running(运行中)、passed(通过)、failed(失败)、timeout(超时)、cancelled(取消) |
task_id | int | 工作流任务 ID |
Workflow 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 工作流标识 |
display_name | string | 工作流显示名称 |
disabled | bool | 是否禁用 |
params | []WorkflowParam | 全局变量列表 |
stages | []WorkflowStage | 阶段 |
project | string | 项目标识 |
description | string | 描述 |
created_by | string | 创建者 |
create_time | int | 创建时间 |
updated_by | string | 更新者 |
update_time | int | 更新时间 |
remark | string | 备注 |
WorkflowParam 全局变量参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 变量名称 |
description | string | 变量描述 |
type | string | 变量类型,支持 string/text/choice/repo 类型 |
value | string | 变量值 |
repo | Repo | repo 类型的变量值,仅当类型为 repo 时使用该字段 |
choice_options | []string | 选项可选值 |
choice_value | []string | 选项值 |
default | string | 默认值 |
is_credential | bool | 是否为敏感信息 |
source | string | 来源,支持 runtime/fixed/reference |
Repo 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
source | string | 来源 |
repo_owner | string | 仓库所有者 |
repo_namespace | string | 仓库命名空间 |
repo_name | string | 仓库名称 |
remote_name | string | 远程名称 |
branch | string | 分支名称 |
prs | []int | PR编号列表 |
tag | string | 标签名称 |
commit_id | string | 提交ID |
commit_message | string | 提交信息 |
checkout_path | string | 检查路径 |
codehost_id | int | 代码源ID |
address | string | 地址 |
WorkflowStage 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 名称 |
jobs | []WorkflowJob | 任务列表 |
WorkflowJob 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 名称 |
type | WorkflowJobType | 类型,支持 zadig-build/zadig-deploy/zadig-vm-deploy/zadig-test/zadig-scanning/zadig-distribute-image/freestyle/apollo/nacos/sql |
spec | any | 任务规格 |
run_policy | string | 运行策略,支持 default_not_run/force_run/skip,如为空则为默认运行 |
WorkflowJobType 参数说明
| 参数名 | 对应 Spec | 说明 |
|---|---|---|
zadig-build | WorkflowBuildJobSpec | 构建任务 Spec |
zadig-deploy | WorkflowDeployJobSpec | 部署任务 Spec |
zadig-vm-deploy | WorkflowVmDeployJobSpec | 主机部署任务 Spec |
zadig-test | WorkflowTestingJobSpec | 测试任务 Spec |
zadig-scanning | WorkflowScanningJobSpec | 扫描任务 Spec |
zadig-distribute-image | WorkflowDistributeImageJobSpec | 分发镜像任务 Spec |
freestyle | WorkflowFreestyleJobSpec | 通用任务 Spec |
apollo | WorkflowApolloJobSpec | Apollo 任务 Spec |
nacos | WorkflowNacosJobSpec | Nacos 任务 Spec |
sql | WorkflowSqlJobSpec | SQL 任务 Spec |
WorkflowBuildJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
source | string | 来源,可选值为:runtime/fixed/fromjob |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
ref_repos | bool | 是否引用所选任务代码信息 |
service_and_builds | []ServiceAndBuild | 服务和构建列表 |
ServiceAndBuild 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
service_name | string | 服务名称 |
service_module | string | 服务组件 |
build_name | string | 构建名称 |
image | string | 镜像地址 |
package | string | 二进制包地址 |
image_name | string | 镜像名称 |
key_vals | []KeyVal | 构建变量列表 |
repos | []Repo | 仓库列表 |
KeyVal 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
key | string | 变量名称 |
value | string | 变量值 |
type | string | 变量类型,可选值为:string/choice/multi-select/image/script |
registry_id | string | 镜像仓库 ID |
script | string | 脚本 |
call_function | string | 调用函数 |
choice_option | []string | 选项可选值 |
choice_value | []string | 选项值 |
is_credential | bool | 是否为敏感信息 |
description | string | 描述 |
source | string | 来源,可选值为:runtime/fixed/reference |
WorkflowDeployJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
env | string | 环境名称 |
production | bool | 是否为生产环境 |
deploy_type | string | 部署类型 |
source | string | 来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
env_source | string | 环境来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
deploy_contents | []string | 部署内容,包括 image/vars/config |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
version_name | string | 版本名称,当从版本导入时使用 |
services | []DeployServiceInfo | 服务列表 |
DeployServiceInfo 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
service_name | string | 服务名称 |
modules | []DeployModuleInfo | 模块列表 |
deployed | bool | 是否已部署 |
auto_sync | bool | 环境中是否开启自动同步 |
update_config | bool | 是否更新配置 |
updatable | bool | 是否可更新 |
variable_kvs | []DeployVariableKv | 变量列表 |
variable_yaml | string | 最终的变量 Yaml,用于 Helm 和 K8S Yaml 服务 |
value_merge_strategy | string | Values 合并策略,用于 Helm 服务,可选项为:override/reuse-values |
override_kvs | string | 键值对变量,用于 Helm 服务,json 编码的键值对值 |
DeployModuleInfo 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
service_module | string | 服务组件 |
image | string | 镜像地址 |
image_name | string | 镜像名称 |
DeployVariableKv 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
key | string | 变量名称 |
value | string | 镜像地址 |
type | string | 变量类型,可选值为:string/bool/enum/yaml |
options | string | 选项可选值,当 type 为 enum 时使用 |
desc | string | 描述 |
use_global_variable | bool | 是否使用全局变量 |
WorkflowVmDeployJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
env | string | 环境名称 |
production | bool | 是否为生产环境 |
env_alias | string | 环境别名 |
source | string | 来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
ref_repos | bool | 是否引用所选任务代码信息 |
service_and_vm_deploys | []ServiceAndVmDeploy | 服务和主机部署列表 |
ServiceAndVmDeploy 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
service_name | string | 服务名称 |
service_module | string | 服务组件 |
deploy_name | string | 部署名称 |
deploy_artifact_type | string | 部署交付物类型,可选值为:image/file/other |
artifact_url | string | 部署交付物地址 |
file_name | string | 部署交付物文件名称 |
image | string | 部署交付物镜像地址 |
key_vals | []KeyVal | 变量列表 |
repos | []Repo | 仓库列表 |
WorkflowFreestyleJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
freestyle_type | string | 通用任务类型,值为空时为单服务,值为 service_freestyle 时为多服务 |
source | string | 来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
ref_repos | bool | 是否引用所选任务代码信息 |
repos | []Repo | 仓库列表,单服务时使用 |
envs | []KeyVal | 变量列表,单服务时使用 |
services | []FreeStyleServiceInfo | 服务列表 |
FreeStyleServiceInfo 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
service_name | string | 服务名称 |
service_module | string | 服务组件 |
repos | []Repo | 仓库列表 |
key_vals | []KeyVal | 变量列表 |
WorkflowTestingJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
testing_type | string | 测试任务类型,值为空时为单服务,值为 service_test 时为多服务 |
source | string | 来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
ref_repos | bool | 是否引用所选任务代码信息 |
service_and_tests | []ServiceAndTest | 服务和测试列表,测试任务类型为多服务时使用 |
test_modules | []TestModule | 测试模块列表,测试任务类型为单服务时使用 |
ServiceAndTest 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 测试名称 |
service_name | string | 服务名称 |
service_module | string | 服务组件 |
repos | []Repo | 仓库列表 |
key_vals | []KeyVal | 变量列表 |
TestModule 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 测试名称 |
repos | []Repo | 仓库列表 |
key_vals | []KeyVal | 变量列表 |
WorkflowScanningsJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
scannings_type | string | 扫描任务类型,值为空时为单服务,值为 service_scannings 时为多服务 |
source | string | 来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
ref_repos | bool | 是否引用所选任务代码信息 |
service_and_scannings | []ServiceAndScannings | 服务和扫描列表,扫描任务类型为多服务时使用 |
scannings_modules | []ScanningsModule | 扫描模块列表,扫描任务类型为单服务时使用 |
ServiceAndScannings 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 扫描名称 |
service_name | string | 服务名称 |
service_module | string | 服务组件 |
repos | []Repo | 仓库列表 |
key_vals | []KeyVal | 变量列表 |
ScanningsModule 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 扫描名称 |
repos | []Repo | 仓库列表 |
key_vals | []KeyVal | 变量列表 |
WorkflowNacosJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
nacos_id | string | Nacos ID |
namespace_id | string | Nacos 命名空间 ID |
source | string | 来源,fixed/runtime, runtime 表示运行时输入,fixed 表示固定值 |
nacos_datas | []NacosData | Nacos 数据列表 |
NacosData 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
data_id | string | 数据 ID |
group | string | 数据组 |
desc | string | 数据描述 |
format | string | 数据格式 |
content | string | 数据内容 |
original_content | string | 原始数据内容 |
namespace_id | string | Nacos 命名空间 ID |
namespace_name | string | Nacos 命名空间名称 |
WorkflowApolloJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
apollo_id | string | Apollo ID |
namespace_list | []ApolloNamespace | Apollo 命名空间列表 |
ApolloNamespace 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
app_id | string | 应用 ID |
cluster_id | string | 集群 ID |
env | string | 环境 |
namespace | string | 命名空间 |
type | string | 类型 |
original_config | []ApolloKV | 原始配置 |
kv | []ApolloKV | 键值对列表 |
ApolloKV 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
key | string | 键 |
val | string | 值 |
WorkflowSqlJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
id | string | 数据库实例 ID |
type | string | 数据库实例类型,mysql/mariadb |
sql | string | SQL 语句 |
source | string | 来源,fixed/runtime, runtime 表示运行时输入,fixed 表示固定值 |
WorkflowDistributeImageJobSpec 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
source | string | 来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取 |
job_name | string | 引用的任务名称,当来源为 fromjob 时使用 |
distribute_method | string | 分发镜像方式,image_push/cloud_sync |
targets | []DistributeImageTarget | 镜像分发目标列表 |
enable_target_image_tag_rule | string | 是否启用镜像版本规则 |
target_image_tag_rule | string | 镜像版本规则 |
DistributeImageTarget 参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
service_name | string | 服务名称 |
service_module | string | 服务组件 |
source_tag | string | 源镜像标签 |
target_tag | string | 镜像版本 |
image_name | string | 镜像名称 |
source_image | string | 源镜像 |
target_image | string | 目标镜像 |
update_tag | bool | 如果 UpdateTag 为 false,则使用源标签作为目标标签 |
body 参数示例
点击查看
{
"object_kind": "release_plan",
"event": "release_plan",
"workflow": null,
"release_plan": {
"id": "68b7ec363306e52e21b2dbe6",
"index": 52,
"name": "workflow-plan-3",
"event_name": "all_job_done",
"manager": "patrick",
"manager_id": "14790d50-37b3-11f0-b3aa-ee39782dea6e",
"start_time": 1756883513,
"end_time": 1757488313,
"schedule_execute_time": 1756893020,
"description": "<p><br></p>",
"created_by": "patrick",
"create_time": 1756884022,
"updated_by": "系统",
"update_time": 1756893023,
"jobs": [
{
"id": "e092f96c-4f78-410e-88bb-7afa881471d9",
"name": "all",
"type": "workflow",
"spec": {
"workflow": {
"name": "release-plan-hook-2",
"display_name": "release-plan-hook-2",
"disabled": false,
"category": "",
"params": [],
"stages": [
{
"name": "build",
"jobs": [
{
"name": "build",
"type": "zadig-build",
"spec": {
"source": "runtime",
"job_name": "",
"ref_repos": false,
"service_and_builds": [
{
"service_name": "service1",
"service_module": "service1",
"build_name": "yaml-general-build",
"image": "{{.job.build.service1.service1.output.IMAGE}}",
"package": "{{.job.build.service1.service1.output.PKG_FILE}}",
"image_name": "service1",
"key_vals": [
{
"key": "gggg",
"value": "gggg",
"type": "string",
"registry_id": "",
"is_credential": false,
"description": "",
"source": "runtime"
}
],
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-test-org1",
"repo_namespace": "kr-test-org1",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "patrick-01",
"tag": "",
"commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
"commit_message": "update service2 values\n",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
]
},
{
"service_name": "service2",
"service_module": "service2",
"build_name": "yaml-general-build",
"image": "{{.job.build.service2.service2.output.IMAGE}}",
"package": "{{.job.build.service2.service2.output.PKG_FILE}}",
"image_name": "service2",
"key_vals": [
{
"key": "gggg",
"value": "gggg",
"type": "string",
"registry_id": "",
"is_credential": false,
"description": "",
"source": "runtime"
}
],
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-test-org1",
"repo_namespace": "kr-test-org1",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "main",
"tag": "",
"commit_id": "1d85022328d6c4d8f6df5890dd0efa48f0e52cea",
"commit_message": "Edit deployment.yaml",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
]
}
]
},
"run_policy": ""
}
]
},
{
"name": "deploy",
"jobs": [
{
"name": "deploy",
"type": "zadig-deploy",
"spec": {
"env": "dev",
"production": false,
"deploy_type": "k8s",
"source": "fromjob",
"env_source": "runtime",
"deploy_contents": [
"image",
"vars"
],
"job_name": "build",
"version_name": "",
"services": [
{
"service_name": "service1",
"modules": [
{
"service_module": "service1",
"image": "{{.job.build.service1.service1.output.IMAGE}}",
"image_name": ""
}
],
"deployed": false,
"auto_sync": false,
"update_config": false,
"updatable": false,
"variable_kvs": [
{
"key": "port",
"value": "20221",
"type": "string",
"options": [],
"desc": "",
"use_global_variable": false,
"is_reference_variable": false
},
{
"key": "targetport",
"value": "20221",
"type": "string",
"options": [],
"desc": "",
"use_global_variable": false,
"is_reference_variable": false
},
{
"key": "replica",
"value": "1",
"type": "string",
"options": [],
"desc": "",
"use_global_variable": false,
"is_reference_variable": false
}
],
"variable_yaml": "",
"value_merge_strategy": "reuse-values",
"override_kvs": ""
},
{
"service_name": "service2",
"modules": [
{
"service_module": "service2",
"image": "{{.job.build.service2.service2.output.IMAGE}}",
"image_name": ""
}
],
"deployed": false,
"auto_sync": false,
"update_config": false,
"updatable": false,
"variable_kvs": [
{
"key": "port",
"value": "20222",
"type": "string",
"options": [],
"desc": "",
"use_global_variable": false,
"is_reference_variable": false
},
{
"key": "targetport",
"value": "20222",
"type": "string",
"options": [],
"desc": "",
"use_global_variable": false,
"is_reference_variable": false
},
{
"key": "replica",
"value": "1",
"type": "string",
"options": [],
"desc": "",
"use_global_variable": false,
"is_reference_variable": false
}
],
"variable_yaml": "",
"value_merge_strategy": "reuse-values",
"override_kvs": ""
}
]
},
"run_policy": ""
}
]
},
{
"name": "scanning",
"jobs": [
{
"name": "scanning",
"type": "zadig-scanning",
"spec": {
"scanning_type": "service_scanning",
"source": "fromjob",
"job_name": "build",
"ref_repos": true,
"scannings": [],
"service_and_scannings": [
{
"service_name": "service2",
"service_module": "service2",
"name": "go-scanner",
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "feature-3",
"tag": "",
"commit_id": "d53a92ffe24ba285151c094e41e3faba620ff1e4",
"commit_message": "Add new file",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"key_vals": [
{
"key": "eee",
"value": "qrew3rw3r",
"type": "text",
"registry_id": "",
"is_credential": false,
"description": "",
"source": ""
}
]
},
{
"service_name": "service1",
"service_module": "service1",
"name": "go-scanner",
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "feature-3",
"tag": "",
"commit_id": "d53a92ffe24ba285151c094e41e3faba620ff1e4",
"commit_message": "Add new file",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"key_vals": [
{
"key": "eee",
"value": "qrew3rw3r",
"type": "text",
"registry_id": "",
"is_credential": false,
"description": "",
"source": ""
}
]
}
]
},
"run_policy": ""
},
{
"name": "product-scanning",
"type": "zadig-scanning",
"spec": {
"scanning_type": "",
"source": "runtime",
"job_name": "",
"ref_repos": false,
"scannings": [
{
"name": "go-scanner",
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "feature-3",
"tag": "",
"commit_id": "d53a92ffe24ba285151c094e41e3faba620ff1e4",
"commit_message": "Add new file",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"key_vals": [
{
"key": "eee",
"value": "qrew3rw3r",
"type": "text",
"registry_id": "",
"is_credential": false,
"description": "",
"source": ""
}
]
}
],
"service_and_scannings": []
},
"run_policy": ""
}
]
},
{
"name": "testing",
"jobs": [
{
"name": "testing",
"type": "zadig-test",
"spec": {
"test_type": "service_test",
"source": "fromjob",
"job_name": "build",
"ref_repos": true,
"service_and_tests": [
{
"service_name": "service1",
"service_module": "service1",
"name": "pytest-yaml",
"key_vals": [],
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "num_test",
"remote_name": "origin",
"branch": "master",
"tag": "",
"commit_id": "3d9fe02a2775caa25f5c1da925239f9e96f9900a",
"commit_message": "Add new file",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
]
},
{
"service_name": "service2",
"service_module": "service2",
"name": "pytest-yaml",
"key_vals": [],
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "num_test",
"remote_name": "origin",
"branch": "master",
"tag": "",
"commit_id": "3d9fe02a2775caa25f5c1da925239f9e96f9900a",
"commit_message": "Add new file",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
]
}
],
"test_modules": []
},
"run_policy": ""
},
{
"name": "product-testing",
"type": "zadig-test",
"spec": {
"test_type": "",
"source": "runtime",
"job_name": "",
"ref_repos": false,
"service_and_tests": [],
"test_modules": [
{
"name": "pytest-yaml",
"key_vals": [],
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "num_test",
"remote_name": "origin",
"branch": "master",
"tag": "",
"commit_id": "3d9fe02a2775caa25f5c1da925239f9e96f9900a",
"commit_message": "Add new file",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
]
}
]
},
"run_policy": ""
}
]
},
{
"name": "freestyle",
"jobs": [
{
"name": "freestyle",
"type": "freestyle",
"spec": {
"freestyle_type": "service_freestyle",
"source": "fromjob",
"job_name": "build",
"ref_repos": false,
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-test-org1",
"repo_namespace": "kr-test-org1",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "patrick-01",
"tag": "",
"commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
"commit_message": "update service2 values\n",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"envs": [
{
"key": "a",
"value": "b",
"type": "string",
"registry_id": "",
"is_credential": true,
"description": "",
"source": "runtime"
}
],
"services": [
{
"service_name": "service1",
"service_module": "service1",
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-test-org1",
"repo_namespace": "kr-test-org1",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "patrick-01",
"tag": "",
"commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
"commit_message": "update service2 values\n",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"key_vals": [
{
"key": "a",
"value": "b",
"type": "string",
"registry_id": "",
"is_credential": true,
"description": "",
"source": "runtime"
}
]
},
{
"service_name": "service2",
"service_module": "service2",
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-test-org1",
"repo_namespace": "kr-test-org1",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "patrick-01",
"tag": "",
"commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
"commit_message": "update service2 values\n",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"key_vals": [
{
"key": "a",
"value": "b",
"type": "string",
"registry_id": "",
"is_credential": true,
"description": "",
"source": "runtime"
}
]
}
]
},
"run_policy": ""
},
{
"name": "s-freestyle",
"type": "freestyle",
"spec": {
"freestyle_type": "",
"source": "runtime",
"job_name": "",
"ref_repos": false,
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-test-org1",
"repo_namespace": "kr-test-org1",
"repo_name": "multi-service-demo",
"remote_name": "origin",
"branch": "patrick-01",
"tag": "",
"commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
"commit_message": "update service2 values\n",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
],
"envs": [],
"services": []
},
"run_policy": ""
}
]
},
{
"name": "dist-image",
"jobs": [
{
"name": "dist-image",
"type": "zadig-distribute-image",
"spec": {
"source": "fromjob",
"job_name": "build",
"distribute_method": "image_push",
"targets": [
{
"service_name": "service1",
"service_module": "service1",
"source_image": "{{.job.build.service1.service1.output.IMAGE}}",
"target_image": "{{.job.dist-image.service1.service1.output.IMAGE}}",
"update_tag": false
},
{
"service_name": "service2",
"service_module": "service2",
"source_image": "{{.job.build.service2.service2.output.IMAGE}}",
"target_image": "{{.job.dist-image.service2.service2.output.IMAGE}}",
"update_tag": false
}
],
"enable_target_image_tag_rule": false,
"target_image_tag_rule": ""
},
"run_policy": ""
}
]
},
{
"name": "sql",
"jobs": [
{
"name": "sql",
"type": "sql",
"spec": {
"id": "68b7e9f9ce13fa85ce223363",
"type": "mysql",
"sql": "show databases;",
"source": "runtime"
},
"run_policy": ""
}
]
},
{
"name": "nacos",
"jobs": [
{
"name": "nacos",
"type": "nacos",
"spec": {
"nacos_id": "68352725c2caad781e1b473e",
"namespace_id": "123456abcdefg",
"source": "fixed",
"nacos_datas": [
{
"data_id": "service1",
"group": "DEFAULT_GROUP",
"format": "YAML",
"content": "ASLAN_DB: zadig_ee_dev\nCLIENT_ID: zadig\nCLIENT_SECRET: ZXhhbXBsZS1hcHAtc2VjcmV0\nREDIS_HOST: kr-redis\nREDIS_PASSWORD: \"\"\nREDIS_PORT: \"6379\"\nREDIS_USER_TOKEN_DB: \"112\"\nREDIS_USERNAME: \"\"\nSCOPES: openid,profile,email,offline_access,groups,federated:id\nTOKEN_EXPIRES_AT: \"10001\"",
"original_content": "ASLAN_DB: zadig_ee_dev\nCLIENT_ID: zadig\nCLIENT_SECRET: ZXhhbXBsZS1hcHAtc2VjcmV0\nREDIS_HOST: kr-redis\nREDIS_PASSWORD: \"\"\nREDIS_PORT: \"6379\"\nREDIS_USER_TOKEN_DB: \"112\"\nREDIS_USERNAME: \"\"\nSCOPES: openid,profile,email,offline_access,groups,federated:id\nTOKEN_EXPIRES_AT: \"10001\"",
"namespace_id": "123456abcdefg",
"namespace_name": "public"
}
]
},
"run_policy": ""
}
]
},
{
"name": "apollo",
"jobs": [
{
"name": "apollo",
"type": "apollo",
"spec": {
"apolloID": "68352738c2caad781e1b473f",
"namespaceList": [
{
"appID": "poc",
"clusterID": "prod",
"env": "REGION1",
"namespace": "application",
"type": "properties",
"original_config": [
{
"key": "spring.datasource.maxWait",
"val": "300021"
},
{
"key": "multipart.maxFileSize",
"val": "8013"
},
{
"key": "server.port",
"val": "202113"
},
{
"key": "server.context-path",
"val": "/hera/poc/dev"
},
{
"key": "logging.level.root",
"val": "INFEVV"
}
],
"kv": [
{
"key": "spring.datasource.maxWait",
"val": "300021"
},
{
"key": "multipart.maxFileSize",
"val": "8013"
},
{
"key": "server.port",
"val": "202113"
},
{
"key": "server.context-path",
"val": "/hera/poc/dev"
},
{
"key": "logging.level.root",
"val": "INFEVV"
}
]
}
]
},
"run_policy": ""
}
]
}
],
"project": "yaml",
"description": "",
"created_by": "patrick",
"create_time": 1756883358,
"updated_by": "patrick",
"update_time": 1756883481,
"remark": "",
"enable_approval_ticket": false,
"approval_ticket_id": ""
},
"status": "prepare",
"task_id": 3
},
"status": "failed",
"executed_by": "系统",
"executed_time": 1756893022
},
{
"id": "85970d24-5e47-4ef7-aa15-6afbf8c79a78",
"name": "helm",
"type": "workflow",
"spec": {
"workflow": {
"name": "multi-chart-ops-workflow",
"display_name": "multi-chart-ops-workflow",
"disabled": false,
"category": "",
"params": [],
"stages": [
{
"name": "部署",
"jobs": [
{
"name": "部署",
"type": "zadig-deploy",
"spec": {
"env": "dev",
"production": false,
"deploy_type": "helm",
"source": "runtime",
"env_source": "",
"deploy_contents": [
"vars",
"image"
],
"job_name": "",
"version_name": "",
"services": [
{
"service_name": "service1",
"modules": [
{
"service_module": "service1",
"image": "koderover.tencentcloudcr.com/koderover-demo/service1:latest",
"image_name": "service1"
}
],
"deployed": false,
"auto_sync": false,
"update_config": false,
"updatable": false,
"variable_kvs": [],
"variable_yaml": "image:\n repository: koderover.tencentcloudcr.com/koderover-demo/service1\n tag: latest\n",
"value_merge_strategy": "reuse-values",
"override_kvs": ""
}
]
},
"run_policy": ""
}
]
}
],
"project": "multi-chart",
"description": "",
"created_by": "system",
"create_time": 1748227788,
"updated_by": "patrick",
"update_time": 1756865603,
"remark": "",
"enable_approval_ticket": false,
"approval_ticket_id": ""
},
"status": "prepare",
"task_id": 43
},
"status": "done",
"executed_by": "系统",
"executed_time": 1756893023
},
{
"id": "79dfeb46-8135-4a3d-9b86-66d199ba1a76",
"name": "vm",
"type": "workflow",
"spec": {
"workflow": {
"name": "vm-workflow-dev",
"display_name": "vm-workflow-dev",
"disabled": false,
"category": "",
"params": [],
"stages": [
{
"name": "构建",
"jobs": [
{
"name": "构建",
"type": "zadig-build",
"spec": {
"source": "",
"job_name": "",
"ref_repos": false,
"service_and_builds": [
{
"service_name": "backend",
"service_module": "backend",
"build_name": "backend-build",
"image": "{{.job.构建.backend.backend.output.IMAGE}}",
"package": "{{.job.构建.backend.backend.output.PKG_FILE}}",
"image_name": "",
"key_vals": [
{
"key": "x",
"value": "a,b",
"type": "multi-select",
"registry_id": "",
"choice_option": [
"a",
"b",
"c"
],
"choice_value": [
"a",
"b"
],
"is_credential": false,
"description": "",
"source": "runtime"
}
],
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "zadig",
"remote_name": "origin",
"branch": "main",
"tag": "",
"commit_id": "9a4594d4a76fd62b6e25cbdb65c35579f816e720",
"commit_message": "update spring-cloud-piggymetrics example\n\nSigned-off-by: lilianzhu <zhujiali@koderover.com>\n",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "https://gitlab.com/",
}
]
}
]
},
"run_policy": ""
}
]
},
{
"name": "主机部署",
"jobs": [
{
"name": "主机部署",
"type": "zadig-vm-deploy",
"spec": {
"env": "dev",
"production": false,
"env_alias": "",
"ref_repos": true,
"service_and_vm_deploys": [
{
"repos": [
{
"source": "gitlab",
"repo_owner": "kr-poc",
"repo_namespace": "kr-poc",
"repo_name": "microservice-demo",
"remote_name": "origin",
"branch": "main",
"tag": "",
"commit_id": "",
"commit_message": "",
"checkout_path": "",
"submodules": false,
"codehost_id": 1,
"address": "",
}
],
"service_name": "backend",
"service_module": "backend",
"deploy_name": "",
"deploy_artifact_type": "file",
"artifact_url": "",
"file_name": "{{.job.构建.backend.backend.output.PKG_FILE}}",
"image": "{{.job.构建.backend.backend.output.IMAGE}}",
"key_vals": [
{
"key": "k1",
"value": "v33",
"type": "string",
"registry_id": "",
"is_credential": false,
"description": "",
"source": "runtime"
},
{
"key": "k2",
"value": "b",
"type": "choice",
"registry_id": "",
"choice_option": [
"a",
"b",
"c"
],
"is_credential": false,
"description": "",
"source": "runtime"
},
{
"key": "k3",
"value": "1,2",
"type": "multi-select",
"registry_id": "",
"choice_option": [
"1",
"2",
"a"
],
"choice_value": [
"1",
"2"
],
"is_credential": false,
"description": "",
"source": "runtime"
}
]
}
],
"source": "fromjob",
"job_name": "构建"
},
"run_policy": ""
}
]
}
],
"project": "vm",
"description": "",
"created_by": "system",
"create_time": 1748237133,
"updated_by": "lilian",
"update_time": 1750645287,
"remark": "",
"enable_approval_ticket": false,
"approval_ticket_id": ""
},
"status": "prepare",
"task_id": 20
},
"status": "done",
"executed_by": "系统",
"executed_time": 1756893023
},
{
"id": "3110fea4-39f4-49e1-a0a8-b010358db3ae",
"name": "text",
"type": "text",
"spec": {
"content": "<p>text</p>",
"remark": "<p><br></p>"
},
"status": "done",
"executed_by": "patrick",
"executed_time": 1756892908
}
],
"status": "wait_for_success_external_check",
"planning_time": 1756892886,
"approval_time": 0,
"executing_time": 1756892896,
"success_time": 1756893100
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# 发布计划 CallBack
请求
POST /api/callback/release_plan
1
body 参数说明
| 参数名 | 类型 | 描述 | 是否必须 | 默认值 |
|---|---|---|---|---|
hook_event | string | Hook 事件,枚举值:finish_planning, start_execute, all_job_done | 是 | 无 |
release_plan_id | string | 发布计划 ID | 是 | 无 |
instance_code | string | 实例 Code | 是 | 无 |
result | string | 结果,枚举值:success, failed | 是 | 无 |
failed_reason | string | 失败原因 | 否 | 无 |
body 参数示例
{
"hook_event": "all_job_done",
"release_plan_id": "68b7ec363306e52e21b2dbe6",
"instance_code": "e52e21b68b7ec3",
"result": "success",
"failed_reason": ""
}
1
2
3
4
5
6
7
2
3
4
5
6
7
正常返回
{
"id": "6895627bd3a843cb7423728a"
}
1
2
3
2
3


