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 2024/04/30 04:13:13 UTC
(incubator-devlake) branch main updated: fix: allow selecting FreeStyleProject in jenkins scopes UI (#7411)
This is an automated email from the ASF dual-hosted git repository.
klesh 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 cb146f8cc fix: allow selecting FreeStyleProject in jenkins scopes UI (#7411)
cb146f8cc is described below
commit cb146f8cc2257e1cd9e6feb164b07ccb2829df9e
Author: Gustavo Bini <64...@users.noreply.github.com>
AuthorDate: Tue Apr 30 06:13:09 2024 +0200
fix: allow selecting FreeStyleProject in jenkins scopes UI (#7411)
This fixes https://github.com/apache/incubator-devlake/issues/7400.
---
backend/plugins/jenkins/api/remote_api.go | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/backend/plugins/jenkins/api/remote_api.go b/backend/plugins/jenkins/api/remote_api.go
index c5052addd..253a333bf 100644
--- a/backend/plugins/jenkins/api/remote_api.go
+++ b/backend/plugins/jenkins/api/remote_api.go
@@ -55,17 +55,8 @@ func listJenkinsRemoteScopes(
getJobsPageCallBack := func(job *models.Job) errors.Error {
switch job.Class {
case "org.jenkinsci.plugins.workflow.job.WorkflowJob":
- // this is a scope
- jenkinsJob := job.ToJenkinsJob()
- children = append(children, dsmodels.DsRemoteApiScopeListEntry[models.JenkinsJob]{
- Type: api.RAS_ENTRY_TYPE_SCOPE,
- Id: jenkinsJob.ScopeId(),
- Name: jenkinsJob.ScopeName(),
- FullName: jenkinsJob.ScopeFullName(),
- Data: jenkinsJob,
- ParentId: parentId,
- })
case "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject":
+ case "hudson.model.FreeStyleProject":
// this is a scope
jenkinsJob := job.ToJenkinsJob()
children = append(children, dsmodels.DsRemoteApiScopeListEntry[models.JenkinsJob]{