|
|
|
@@ -840,11 +840,12 @@ func Cloudbrains(ctx *context.Context) { |
|
|
|
ciTasks[i].CanDebug = true |
|
|
|
ciTasks[i].CanDel = true |
|
|
|
ciTasks[i].Cloudbrain.ComputeResource = ciTasks[i].ComputeResource |
|
|
|
|
|
|
|
if ciTasks[i].Cloudbrain.Type == models.TypeC2Net { |
|
|
|
ciTasks[i].Cloudbrain.Spec.Cluster = models.C2NetCluster |
|
|
|
} else { |
|
|
|
ciTasks[i].Cloudbrain.Spec.Cluster = models.OpenICluster |
|
|
|
if ciTasks[i].Cloudbrain.Spec != nil { |
|
|
|
if ciTasks[i].Cloudbrain.Type == models.TypeC2Net { |
|
|
|
ciTasks[i].Cloudbrain.Spec.Cluster = models.C2NetCluster |
|
|
|
} else { |
|
|
|
ciTasks[i].Cloudbrain.Spec.Cluster = models.OpenICluster |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, getTotalPage(count, setting.UI.IssuePagingNum)) |
|
|
|
|