|
|
@@ -456,7 +456,7 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo |
|
|
|
ctx.Data["error"] = err.Error() |
|
|
|
return |
|
|
|
} |
|
|
|
} else { //restart record |
|
|
|
} else { //deleted record |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
@@ -982,7 +982,6 @@ func uploadCodeToMinio(codePath, jobName, parentDir string) error { |
|
|
|
destObject := setting.CBCodePathPrefix + jobName + parentDir + file.Name() |
|
|
|
sourceFile := codePath + file.Name() |
|
|
|
err = storage.Attachments.UploadObject(destObject, sourceFile) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
log.Error("UploadObject(%s) failed: %s", file.Name(), err.Error()) |
|
|
|
return err |
|
|
|