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 a4292190c fix: the type assertion (#5441)
a4292190c is described below
commit a4292190c4e7a864e4a13f1b503483c27c478b75
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Jun 12 17:17:28 2023 +0800
fix: the type assertion (#5441)
---
backend/plugins/jenkins/impl/impl.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/jenkins/impl/impl.go
b/backend/plugins/jenkins/impl/impl.go
index e3b03cf4e..67c5eeebf 100644
--- a/backend/plugins/jenkins/impl/impl.go
+++ b/backend/plugins/jenkins/impl/impl.go
@@ -246,7 +246,7 @@ func EnrichOptions(taskCtx plugin.TaskContext,
err = api.GetJob(apiClient, op.JobPath, op.JobName, op.JobFullName,
100, func(job *models.Job, isPath bool) errors.Error {
log.Debug(fmt.Sprintf("Current job: %s", job.FullName))
op.JobPath = job.Path
- jenkinsJob := job.ConvertApiScope().(models.JenkinsJob)
+ jenkinsJob := job.ConvertApiScope().(*models.JenkinsJob)
jenkinsJob.ConnectionId = op.ConnectionId
jenkinsJob.ScopeConfigId = op.ScopeConfigId