|
@@ -114,6 +114,7 @@ public class DeploymentServiceImpl implements DeploymentService {
|
|
|
.startTime(new Timestamp(System.currentTimeMillis()))
|
|
.startTime(new Timestamp(System.currentTimeMillis()))
|
|
|
.build();
|
|
.build();
|
|
|
pipelineRecordMapper.insert(record);
|
|
pipelineRecordMapper.insert(record);
|
|
|
|
|
+ log.info("流水线触发部署,对应id为:{}",record.getPipelineId());
|
|
|
|
|
|
|
|
// 有一些流水线是不产生部署产物的
|
|
// 有一些流水线是不产生部署产物的
|
|
|
boolean hasDeployment = true;
|
|
boolean hasDeployment = true;
|
|
@@ -151,6 +152,8 @@ public class DeploymentServiceImpl implements DeploymentService {
|
|
|
deploymentMapper.update(deployment);
|
|
deploymentMapper.update(deployment);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ log.info("{}号流水线部署完成",record.getPipelineId());
|
|
|
|
|
+ log.info("对应namespace为{}",projectPO.getUniqueK8sNamespace());
|
|
|
|
|
|
|
|
Pipeline pipeline = null;
|
|
Pipeline pipeline = null;
|
|
|
try {
|
|
try {
|
|
@@ -159,6 +162,7 @@ public class DeploymentServiceImpl implements DeploymentService {
|
|
|
pipeline.start();
|
|
pipeline.start();
|
|
|
record.setResult(PipelineRecordPO.DEPLOY_SUCCESS);
|
|
record.setResult(PipelineRecordPO.DEPLOY_SUCCESS);
|
|
|
record.setDetails(pipeline.getContext().getResult());
|
|
record.setDetails(pipeline.getContext().getResult());
|
|
|
|
|
+ log.info("流水线部署成功");
|
|
|
} catch (PipelineException e) {
|
|
} catch (PipelineException e) {
|
|
|
record.setResult(PipelineRecordPO.DEPLOY_FAIL);
|
|
record.setResult(PipelineRecordPO.DEPLOY_FAIL);
|
|
|
record.setDetails(pipeline.getContext().getResult());
|
|
record.setDetails(pipeline.getContext().getResult());
|