You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2023/12/29 03:26:02 UTC
(incubator-devlake) 01/01: fix: jenkins tasks showing undefined on the config-ui
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch kw-jenkins-bpgen-fieldcase
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 3e25277d78e14fabd0b098501dfbb9040949a31e
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Fri Dec 29 11:25:44 2023 +0800
fix: jenkins tasks showing undefined on the config-ui
---
backend/plugins/jenkins/tasks/task_data.go | 10 +++++-----
backend/plugins/sonarqube/tasks/task_data.go | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/backend/plugins/jenkins/tasks/task_data.go b/backend/plugins/jenkins/tasks/task_data.go
index 42cf44bb8..c05faa02c 100644
--- a/backend/plugins/jenkins/tasks/task_data.go
+++ b/backend/plugins/jenkins/tasks/task_data.go
@@ -29,11 +29,11 @@ type JenkinsApiParams models.JenkinsApiParams
type JenkinsOptions struct {
ConnectionId uint64 `json:"connectionId"`
ScopeId string
- ScopeConfigId uint64 `json:"scopeConfigId"`
- JobFullName string `json:"jobFullName"` // "path1/path2/job name"
- JobName string `json:"jobName"` // "job name"
- JobPath string `json:"jobPath"` // "job/path1/job/path2"
- Tasks []string `json:"tasks,omitempty"`
+ ScopeConfigId uint64 `json:"scopeConfigId" mapstructure:"scopeConfigId"`
+ JobFullName string `json:"jobFullName" mapstructure:"jobFullName"` // "path1/path2/job name"
+ JobName string `json:"jobName" mapstructure:"jobName"` // "job name"
+ JobPath string `json:"jobPath" mapstructure:"jobPath"` // "job/path1/job/path2"
+ Tasks []string `json:"tasks,omitempty" mapstructure:"tasks"`
ScopeConfig *models.JenkinsScopeConfig `mapstructure:"scopeConfig" json:"scopeConfig"`
api.CollectorOptions `mapstructure:",squash"`
}
diff --git a/backend/plugins/sonarqube/tasks/task_data.go b/backend/plugins/sonarqube/tasks/task_data.go
index 1d6ab3f9c..0727d5331 100644
--- a/backend/plugins/sonarqube/tasks/task_data.go
+++ b/backend/plugins/sonarqube/tasks/task_data.go
@@ -28,8 +28,8 @@ type SonarqubeOptions struct {
// options means some custom params required by plugin running.
// Such As How many rows do your want
// You can use it in subtasks, and you need to pass it to main.go and pipelines.
- ConnectionId uint64 `json:"connectionId"`
- ProjectKey string `json:"projectKey"`
+ ConnectionId uint64 `json:"connectionId" mapstructure:"connectionId"`
+ ProjectKey string `json:"projectKey" mapstructure:"projectKey"`
api.CollectorOptions `mapstructure:",squash"`
}