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