| @@ -69,6 +69,8 @@ public class NewDatasetServiceImpl implements NewDatasetService { | |||||
| String endpoint; | String endpoint; | ||||
| @Value("${git.endpoint}") | @Value("${git.endpoint}") | ||||
| String gitendpoint; | String gitendpoint; | ||||
| @Value("${git.cloneEndpoint}") | |||||
| String gitCloneEndpoint; | |||||
| @Value("${minio.dataReleaseBucketName}") | @Value("${minio.dataReleaseBucketName}") | ||||
| private String bucketName; | private String bucketName; | ||||
| @Value("${git.localPath}") | @Value("${git.localPath}") | ||||
| @@ -129,7 +131,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { | |||||
| } | } | ||||
| // 得到项目地址 | // 得到项目地址 | ||||
| String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; | |||||
| String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git"; | |||||
| // 得到用户操作的路径 | // 得到用户操作的路径 | ||||
| String sourcePath = datasetVo.getDatasetVersionVos().get(0).getUrl(); | String sourcePath = datasetVo.getDatasetVersionVos().get(0).getUrl(); | ||||
| @@ -213,7 +215,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { | |||||
| String relatePath = ci4sUsername + "/datasets/" + datasetVo.getId() + "/" + repositoryName + "/" + branchName; | String relatePath = ci4sUsername + "/datasets/" + datasetVo.getId() + "/" + repositoryName + "/" + branchName; | ||||
| String localPath = localPathlocal + relatePath; | String localPath = localPathlocal + relatePath; | ||||
| String datasetPath = localPath + "/dataset"; | String datasetPath = localPath + "/dataset"; | ||||
| String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; | |||||
| String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git"; | |||||
| //干掉目标文件夹 | //干掉目标文件夹 | ||||
| dvcUtils.deleteDirectory(localPath); | dvcUtils.deleteDirectory(localPath); | ||||