|
|
|
@@ -868,9 +868,10 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
String repositoryName = modelsVo.getIdentifier(); |
|
|
|
String branchName = modelsVo.getVersion(); |
|
|
|
String relatePath = ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName + "/metadata"; |
|
|
|
String metaPath = localPath + relatePath; |
|
|
|
String rootPath = localPath + relatePath; |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
YamlUtils.generateYamlFile(JsonUtils.objectToMap(modelsVo), metaPath, "metadata"); |
|
|
|
dvcUtils.pushNewBranchToRemote(metaPath, gitLinkUsername, gitLinkPassword, branchName); |
|
|
|
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName); |
|
|
|
return "更新模型版本成功"; |
|
|
|
} |
|
|
|
|
|
|
|
|