|
|
|
@@ -105,6 +105,8 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
private Integer redisPort; |
|
|
|
@Value("${git.endpoint}") |
|
|
|
String gitendpoint; |
|
|
|
@Value("${git.cloneEndpoint}") |
|
|
|
String gitCloneEndpoint; |
|
|
|
@Value("${git.localPath}") |
|
|
|
String localPath; |
|
|
|
@Value("${minio.accessKey}") |
|
|
|
@@ -593,7 +595,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
String branchName = modelsVo.getVersion(); |
|
|
|
String owner = (String) userInfo.get("login"); |
|
|
|
|
|
|
|
String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String sourcePath = modelsVo.getModelVersionVos().get(0).getUrl(); |
|
|
|
String rootPath = localPath + ci4sUsername + "/model/" + gitlinIid + "/" + repositoryName + "/" + branchName; |
|
|
|
String modelPath = rootPath + "/model"; |
|
|
|
@@ -702,7 +704,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
String branchName = modelsVo.getVersion(); |
|
|
|
String owner = (String) userInfo.get("login"); |
|
|
|
|
|
|
|
String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String rootPath = localPath + ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName; |
|
|
|
String modelPath = rootPath + "/model"; |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
|