|
|
|
@@ -364,13 +364,17 @@ func trainJobNewDataPrepare(ctx *context.Context) error { |
|
|
|
|
|
|
|
Branches, err := ctx.Repo.GitRepo.GetBranches() |
|
|
|
if err != nil { |
|
|
|
log.Error("GetBranches failed:%v", err) |
|
|
|
ctx.ServerError("GetBranches error:", err) |
|
|
|
return err |
|
|
|
} |
|
|
|
ctx.Data["Branches"] = Branches |
|
|
|
if Branches != nil { |
|
|
|
ctx.Data["Branches"] = Branches |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Data["BranchesCount"] = len(Branches) |
|
|
|
ctx.Data["params"] = "" |
|
|
|
ctx.Data["BranchName"] = ctx.Repo.BranchName |
|
|
|
ctx.Data["branchName"] = ctx.Repo.BranchName |
|
|
|
|
|
|
|
configList, err := getConfigList(modelarts.PerPage, 1, modelarts.SortByCreateTime, "desc", "", modelarts.ConfigTypeCustom) |
|
|
|
if err != nil { |
|
|
|
|