|
|
|
@@ -867,7 +867,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
String gitLinkPassword = decrypt(loginUser.getSysUser().getOriginPassword()); |
|
|
|
String repositoryName = modelsVo.getIdentifier(); |
|
|
|
String branchName = modelsVo.getVersion(); |
|
|
|
String relatePath = ci4sUsername + "/datasets/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName; |
|
|
|
String relatePath = ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName; |
|
|
|
String rootPath = localPath + relatePath; |
|
|
|
YamlUtils.generateYamlFile(JsonUtils.objectToMap(modelsVo), rootPath, "dataset"); |
|
|
|
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName); |
|
|
|
|