This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v0.19
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.19 by this push:
     new 6ed63fd72 fix(bamboo): add cicd_tasks.duration_sec field (#6120)
6ed63fd72 is described below

commit 6ed63fd72091f01c98cf5f9d2e6215065f2b1cee
Author: Lynwee <[email protected]>
AuthorDate: Wed Sep 20 14:44:40 2023 +0800

    fix(bamboo): add cicd_tasks.duration_sec field (#6120)
---
 backend/plugins/bamboo/tasks/job_build_convertor.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/plugins/bamboo/tasks/job_build_convertor.go 
b/backend/plugins/bamboo/tasks/job_build_convertor.go
index 62d2a05dd..68deee49b 100644
--- a/backend/plugins/bamboo/tasks/job_build_convertor.go
+++ b/backend/plugins/bamboo/tasks/job_build_convertor.go
@@ -65,6 +65,7 @@ func ConvertJobBuilds(taskCtx plugin.SubTaskContext) 
errors.Error {
                        domainJobBuild := &devops.CICDTask{
                                DomainEntity: domainlayer.DomainEntity{Id: 
jobBuildIdGen.Generate(data.Options.ConnectionId, line.JobBuildKey)},
                                Name:         line.JobName,
+                               DurationSec:  
uint64(line.BuildDurationInSeconds),
                                StartedDate:  *line.BuildStartedTime,
                                FinishedDate: line.BuildCompletedDate,
                                PipelineId:   
planBuildIdGen.Generate(data.Options.ConnectionId, line.PlanBuildKey),

Reply via email to