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

mintsweet 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 60214ff29 fix: rename jobFullName to fullName for jenkins.job (#6228)
60214ff29 is described below

commit 60214ff29d7992f7a51f73ab9831966342085602
Author: Klesh Wong <[email protected]>
AuthorDate: Thu Oct 12 14:14:53 2023 +0800

    fix: rename jobFullName to fullName for jenkins.job (#6228)
---
 backend/plugins/jenkins/models/job.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/plugins/jenkins/models/job.go 
b/backend/plugins/jenkins/models/job.go
index 16d66c782..0e493aa38 100644
--- a/backend/plugins/jenkins/models/job.go
+++ b/backend/plugins/jenkins/models/job.go
@@ -27,7 +27,7 @@ var _ plugin.ToolLayerScope = (*JenkinsJob)(nil)
 // JenkinsJob db entity for jenkins job
 type JenkinsJob struct {
        ConnectionId     uint64 `gorm:"primaryKey" 
mapstructure:"connectionId,omitempty" validate:"required" json:"connectionId"`
-       FullName         string `gorm:"primaryKey;type:varchar(255)" 
mapstructure:"jobFullName" validate:"required" json:"jobFullName"` // 
"path1/path2/job name"
+       FullName         string `gorm:"primaryKey;type:varchar(255)" 
mapstructure:"fullName" validate:"required" json:"fullName"` // 
"path1/path2/job name"
        ScopeConfigId    uint64 `mapstructure:"scopeConfigId,omitempty" 
json:"scopeConfigId,omitempty"`
        Name             string `gorm:"index;type:varchar(255)" 
mapstructure:"name" json:"name"`     // scope name now is same to `jobFullName`
        Path             string `gorm:"index;type:varchar(511)" 
mapstructure:"-,omitempty" json:"-"` // "job/path1/job/path2"

Reply via email to