This is an automated email from the ASF dual-hosted git repository. warren pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 8a0890cee617973a94d86d1109dc76ca3e872319 Author: abeizn <[email protected]> AuthorDate: Mon Sep 19 18:09:12 2022 +0800 feat: add deployTagPattern for jenkins and fix jenkins bugs --- plugins/jenkins/tasks/stage_collector.go | 2 +- plugins/jenkins/tasks/stage_extractor.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/jenkins/tasks/stage_collector.go b/plugins/jenkins/tasks/stage_collector.go index 3ba652ea..7e3f0fc9 100644 --- a/plugins/jenkins/tasks/stage_collector.go +++ b/plugins/jenkins/tasks/stage_collector.go @@ -43,7 +43,7 @@ type SimpleBuild struct { Path string JobName string Number string - DisplayName string + FullDisplayName string } func CollectApiStages(taskCtx core.SubTaskContext) errors.Error { diff --git a/plugins/jenkins/tasks/stage_extractor.go b/plugins/jenkins/tasks/stage_extractor.go index c9541795..d010c792 100644 --- a/plugins/jenkins/tasks/stage_extractor.go +++ b/plugins/jenkins/tasks/stage_extractor.go @@ -19,6 +19,7 @@ package tasks import ( "encoding/json" + "github.com/apache/incubator-devlake/errors" "github.com/apache/incubator-devlake/plugins/core" "github.com/apache/incubator-devlake/plugins/helper" @@ -68,7 +69,7 @@ func ExtractApiStages(taskCtx core.SubTaskContext) errors.Error { StartTimeMillis: body.StartTimeMillis, DurationMillis: body.DurationMillis, PauseDurationMillis: body.PauseDurationMillis, - BuildName: input.DisplayName, + BuildName: input.FullDisplayName, } results = append(results, stage)
