Commit 7dff7e82 authored by 黎博's avatar 黎博

merge master

parents beadaebf e1ae2546
......@@ -37,7 +37,7 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineMapper, Pipeline> i
public void buildPipelineJob(String gitlabData) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String projectName = JsonPath.read(gitlabData, "$.project.name");
String branch = JsonPath.read(gitlabData, "$.ref").toString().split("/")[2];
String branch = JsonPath.read(gitlabData, "$.ref").toString().substring(11);
Integer totalCommitCount = JsonPath.read(gitlabData, "$.total_commits_count");
if (totalCommitCount.equals(0)) {
return;
......
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