You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/09/26 10:28:30 UTC
[incubator-devlake] 01/03: fix: type filed is nil in cicd_task table by jenkins-dora union plugin
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 <zi...@merico.dev>
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 {