This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 0f4e7bfad fix: jenkins tasks showing undefined on the config-ui (#6705)
0f4e7bfad is described below
commit 0f4e7bfadda2236ccfc660f89e2d5177da2ed4f3
Author: Klesh Wong <[email protected]>
AuthorDate: Fri Dec 29 12:44:17 2023 +0800
fix: jenkins tasks showing undefined on the config-ui (#6705)
---
backend/plugins/jenkins/tasks/task_data.go | 14 +++++++-------
backend/plugins/sonarqube/tasks/task_data.go | 4 ++--
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/backend/plugins/jenkins/tasks/task_data.go
b/backend/plugins/jenkins/tasks/task_data.go
index 42cf44bb8..c2058412e 100644
--- a/backend/plugins/jenkins/tasks/task_data.go
+++ b/backend/plugins/jenkins/tasks/task_data.go
@@ -27,13 +27,13 @@ import (
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"`
+ ConnectionId uint64 `json:"connectionId"
mapstructure:"connectionId"`
+ ScopeId string `json:"scopeId"
mapstructure:"scopeId"`
+ 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"`
}