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 3ca47ae313e5636df264770335c0a3a62e60769d
Author: abeizn <[email protected]>
AuthorDate: Mon Sep 26 14:38:04 2022 +0800

    fix: type filed is nil in cicd_task table by jenkins-dora union plugin
---
 plugins/dora/tasks/cicd_task_env_enricher.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/dora/tasks/cicd_task_env_enricher.go 
b/plugins/dora/tasks/cicd_task_env_enricher.go
index 13f80f5e..f571b80f 100644
--- a/plugins/dora/tasks/cicd_task_env_enricher.go
+++ b/plugins/dora/tasks/cicd_task_env_enricher.go
@@ -70,7 +70,7 @@ func EnrichTasksEnv(taskCtx core.SubTaskContext) (err 
errors.Error) {
        } else {
                cursor, err = db.Cursor(
                        dal.From(&devops.CICDTask{}),
-                       dal.Join("left join cicd_pipeline_commits cpr on 
cpr.repo_id != '' and cicd_tasks.pipeline_id = cpr.pipeline_id "),
+                       dal.Join("left join cicd_pipeline_commits cpr on 
cpr.repo_id = '' and cicd_tasks.pipeline_id = cpr.pipeline_id "),
                        dal.Where("status=?", devops.DONE))
        }
        if err != nil {

Reply via email to