Merge branch 'master' of http://1.14.125.6:3000/mianbin/ops-pro
This commit is contained in:
commit
3c3002766e
@ -1,6 +1,5 @@
|
|||||||
package cd.casic.ci.process.dto.req.pipeline;
|
package cd.casic.ci.process.dto.req.pipeline;
|
||||||
|
|
||||||
import cd.casic.ci.process.dto.req.resource.ResourceReq;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@ -13,78 +12,60 @@ import java.time.LocalDateTime;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class PipelineCreateReq {
|
public class PipelineCreateReq {
|
||||||
|
//流水线名称
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
//环境id
|
||||||
private String envId;
|
private String envId;
|
||||||
|
|
||||||
|
//分组id
|
||||||
private String groupId;
|
private String groupId;
|
||||||
/**
|
|
||||||
* @pi.name:type
|
//流水线类型 1.多任务 2.多阶段
|
||||||
* @pi.dataType:Integer
|
|
||||||
* @pi.desc:流水线类型 1.多任务 2.多阶段
|
|
||||||
* @pi.value: 1
|
|
||||||
*/
|
|
||||||
private int type;
|
private int type;
|
||||||
|
|
||||||
/**
|
//运行状态 1.未运行 2.运行中
|
||||||
* @pi.name:state
|
|
||||||
* @pi.dataType:Integer
|
|
||||||
* @pi.desc:运行状态 1.未运行 2.运行中
|
|
||||||
* @pi.value:1
|
|
||||||
*/
|
|
||||||
private int state;
|
private int state;
|
||||||
|
|
||||||
/**
|
//项目作用域 1.全局 2.项目
|
||||||
* @pi.name:power
|
|
||||||
* @pi.dataType:Integer
|
|
||||||
* @pi.desc:项目作用域 1.全局 2.项目
|
|
||||||
* @pi.value:1
|
|
||||||
*/
|
|
||||||
private int power;
|
private int power;
|
||||||
|
|
||||||
/**
|
//颜色 1~5随机生成
|
||||||
* @pi.name:color
|
|
||||||
* @pi.dataType:Integer
|
|
||||||
* @pi.desc:颜色 1~5随机生成
|
|
||||||
* @pi.value:2
|
|
||||||
*/
|
|
||||||
private int color;
|
private int color;
|
||||||
|
|
||||||
/**
|
//流水线模板id
|
||||||
* @pi.name:template
|
|
||||||
* @pi.dataType:string
|
|
||||||
* @pi.desc:流水线模板
|
|
||||||
* @pi.value:template
|
|
||||||
*/
|
|
||||||
private String templateId;
|
private String templateId;
|
||||||
|
|
||||||
|
//目标id
|
||||||
private String targetVersionId;
|
private String targetVersionId;
|
||||||
|
|
||||||
|
//目标类型
|
||||||
private String targetType;
|
private String targetType;
|
||||||
|
|
||||||
|
//流水线标签
|
||||||
private String pipelineTag;
|
private String pipelineTag;
|
||||||
|
|
||||||
|
//项目id
|
||||||
private String projectId;
|
private String projectId;
|
||||||
|
|
||||||
|
//备注
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
//收藏 0.未收藏 1.收藏
|
||||||
* @pi.name:collect
|
|
||||||
* @pi.dataType:Integer
|
|
||||||
* @pi.desc:收藏 0.未收藏 1.收藏
|
|
||||||
* @pi.value:2
|
|
||||||
*/
|
|
||||||
private int collect;
|
private int collect;
|
||||||
|
|
||||||
|
//执行人id
|
||||||
private String executeUserId;
|
private String executeUserId;
|
||||||
|
|
||||||
|
//执行时间
|
||||||
private LocalDateTime executeTime;
|
private LocalDateTime executeTime;
|
||||||
|
|
||||||
|
//流水线触发模式
|
||||||
private String pipelineTriggerMode;
|
private String pipelineTriggerMode;
|
||||||
|
|
||||||
|
//执行状态
|
||||||
private String executeStatus;
|
private String executeStatus;
|
||||||
|
|
||||||
|
//资源id
|
||||||
private String resourceId;
|
private String resourceId;
|
||||||
|
|
||||||
private ResourceReq resourceReq;
|
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,6 @@ public class StageCreateReq {
|
|||||||
private String stageId;
|
private String stageId;
|
||||||
// 如果需要新增阶段则传这个
|
// 如果需要新增阶段则传这个
|
||||||
private Integer stageSort;
|
private Integer stageSort;
|
||||||
|
//节点信息
|
||||||
private TaskCreateReq task;
|
private TaskCreateReq task;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,10 @@ import java.util.Map;
|
|||||||
public class TaskUpdateReq {
|
public class TaskUpdateReq {
|
||||||
// 第二级stageId,如果没有值则新建第二级stage
|
// 第二级stageId,如果没有值则新建第二级stage
|
||||||
private String id;
|
private String id;
|
||||||
|
//节点名称
|
||||||
private String taskName;
|
private String taskName;
|
||||||
|
//节点类型
|
||||||
private String taskType;
|
private String taskType;
|
||||||
|
//节点参数配置json
|
||||||
private Map<String,Object> taskProperties;
|
private Map<String,Object> taskProperties;
|
||||||
}
|
}
|
||||||
|
@ -50,14 +50,19 @@ public class ResourceFindResp {
|
|||||||
//最后修改人姓名
|
//最后修改人姓名
|
||||||
private String updaterName;
|
private String updaterName;
|
||||||
|
|
||||||
|
//备注
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
//机器信息
|
||||||
private PipResourceMachine resourceMachine;
|
private PipResourceMachine resourceMachine;
|
||||||
|
|
||||||
|
//镜像信息
|
||||||
private DockerEndpointDo dockerEndpoint;
|
private DockerEndpointDo dockerEndpoint;
|
||||||
|
|
||||||
|
//k8s信息
|
||||||
private PipResourceK8S pipResourceK8S;
|
private PipResourceK8S pipResourceK8S;
|
||||||
|
|
||||||
|
//弹性云信息
|
||||||
private PipResourceCloud pipResourceCloud;
|
private PipResourceCloud pipResourceCloud;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,34 +13,43 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class TemplateFindResp {
|
public class TemplateFindResp {
|
||||||
|
// 模板唯一标识符
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
// 模板名称
|
||||||
private String templateName;
|
private String templateName;
|
||||||
|
|
||||||
|
// 模板类型(如:流水线模板、任务模板等)
|
||||||
private String templateType;
|
private String templateType;
|
||||||
|
|
||||||
|
// 模板编码或标识符
|
||||||
private String templateCode;
|
private String templateCode;
|
||||||
|
|
||||||
|
// 排序字段,用于控制显示顺序
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
|
// 备注信息,描述模板额外信息
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
// 阶段列表,包含属于该模板的多个阶段对象
|
||||||
private List<TemplateStageResp> stageList;
|
private List<TemplateStageResp> stageList;
|
||||||
|
|
||||||
|
// 创建人ID,记录创建该模板的用户唯一标识
|
||||||
|
|
||||||
//创建人id
|
|
||||||
private String creator;
|
private String creator;
|
||||||
|
|
||||||
//创建人姓名
|
// 创建人姓名,记录创建该模板的用户名字
|
||||||
private String creatorName;
|
private String creatorName;
|
||||||
|
|
||||||
//最后修改人id
|
// 最后修改人ID,记录最后修改该模板的用户唯一标识
|
||||||
private String updater;
|
private String updater;
|
||||||
|
|
||||||
//最后修改人姓名
|
// 最后修改人姓名,记录最后修改该模板的用户名字
|
||||||
private String updaterName;
|
private String updaterName;
|
||||||
|
|
||||||
|
// 模板创建时间
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
// 模板最后一次更新时间
|
||||||
private LocalDateTime updateTime;
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user