|
|
|
@@ -69,6 +69,8 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
String endpoint; |
|
|
|
@Value("${git.endpoint}") |
|
|
|
String gitendpoint; |
|
|
|
@Value("${git.cloneEndpoint}") |
|
|
|
String gitCloneEndpoint; |
|
|
|
@Value("${minio.dataReleaseBucketName}") |
|
|
|
private String bucketName; |
|
|
|
@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(); |
|
|
|
@@ -213,7 +215,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
String relatePath = ci4sUsername + "/datasets/" + datasetVo.getId() + "/" + repositoryName + "/" + branchName; |
|
|
|
String localPath = localPathlocal + relatePath; |
|
|
|
String datasetPath = localPath + "/dataset"; |
|
|
|
String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
|
|
|
|
//干掉目标文件夹 |
|
|
|
dvcUtils.deleteDirectory(localPath); |
|
|
|
|