|
|
|
@@ -870,7 +870,8 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
String relatePath = ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName; |
|
|
|
String rootPath = localPath + relatePath; |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
YamlUtils.generateYamlFile(JsonUtils.objectToMap(modelsVo), metaPath, "metadata"); |
|
|
|
Map<String, Object> metaMap = JSON.parseObject(JSON.toJSONString(modelsVo), Map.class); |
|
|
|
YamlUtils.generateYamlFile(metaMap, metaPath, "metadata"); |
|
|
|
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName); |
|
|
|
return "更新模型版本成功"; |
|
|
|
} |
|
|
|
|