Commit d1d879f9 authored by 黎博's avatar 黎博

fix

parent 5414928c
...@@ -51,7 +51,7 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineMapper, Pipeline> i ...@@ -51,7 +51,7 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineMapper, Pipeline> i
pipelineQueryWrapper.eq("service_branch", branch); pipelineQueryWrapper.eq("service_branch", branch);
Pipeline pipeline = pipelineMapper.selectOne(pipelineQueryWrapper); Pipeline pipeline = pipelineMapper.selectOne(pipelineQueryWrapper);
if (pipeline != null) { if (pipeline != null) {
if (pipeline.getEnable() == 1) { if (pipeline.getEnable().equals("1")) {
log.info("pipeline中找到对应项目,且项目是启动状态,开始构建:{}", pipeline.toString()); log.info("pipeline中找到对应项目,且项目是启动状态,开始构建:{}", pipeline.toString());
Integer buildNum = jenkinsService.buildJenkinsJob(pipeline.getServiceType(), projectName, branch, pipeline.getNamespace()); Integer buildNum = jenkinsService.buildJenkinsJob(pipeline.getServiceType(), projectName, branch, pipeline.getNamespace());
String markdown = DingdingUtils.buildPipelineMarkdownMsg(projectName, branch, pipeline.getServiceType(), author, message, commitDate, pipeline.getNamespace(), buildNum.toString()); String markdown = DingdingUtils.buildPipelineMarkdownMsg(projectName, branch, pipeline.getServiceType(), author, message, commitDate, pipeline.getNamespace(), buildNum.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment