|
|
@@ -63,6 +63,8 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
String endpoint; |
|
|
String endpoint; |
|
|
@Value("${git.endpoint}") |
|
|
@Value("${git.endpoint}") |
|
|
String gitendpoint; |
|
|
String gitendpoint; |
|
|
|
|
|
@Value("${minio.dataReleaseBucketName}") |
|
|
|
|
|
private String bucketName; |
|
|
@Value("${git.localPath}") |
|
|
@Value("${git.localPath}") |
|
|
String localPathlocal; |
|
|
String localPathlocal; |
|
|
@Resource |
|
|
@Resource |
|
|
@@ -123,7 +125,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
|
|
|
|
|
// 命令行操作 git clone 项目地址 |
|
|
// 命令行操作 git clone 项目地址 |
|
|
dvcUtils.gitClone(localPath, projectUrl, branchName, gitLinkUsername, gitLinkPassword); |
|
|
dvcUtils.gitClone(localPath, projectUrl, branchName, gitLinkUsername, gitLinkPassword); |
|
|
String s3Path = "data/mini-model-management-platform-files" + "/" + relatePath + "/" + branchName; |
|
|
|
|
|
|
|
|
String s3Path = bucketName + "/mini-model-management-platform-files" + "/" + relatePath + "/" + branchName; |
|
|
//干掉目标文件夹 |
|
|
//干掉目标文件夹 |
|
|
dvcUtils.deleteDirectory(datasetPath); |
|
|
dvcUtils.deleteDirectory(datasetPath); |
|
|
dvcUtils.moveFiles(sourcePath, datasetPath); |
|
|
dvcUtils.moveFiles(sourcePath, datasetPath); |
|
|
@@ -216,7 +218,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
dvcUtils.dvcCheckout(localPath); |
|
|
dvcUtils.dvcCheckout(localPath); |
|
|
|
|
|
|
|
|
// 准备数据 |
|
|
// 准备数据 |
|
|
String s3Path = "data/mini-model-management-platform-files" + "/" + relatePath + "/" + branchName; |
|
|
|
|
|
|
|
|
String s3Path = bucketName + "/mini-model-management-platform-files" + "/" + relatePath + "/" + branchName; |
|
|
//干掉目标文件夹 |
|
|
//干掉目标文件夹 |
|
|
dvcUtils.deleteDirectory(datasetPath); |
|
|
dvcUtils.deleteDirectory(datasetPath); |
|
|
|
|
|
|
|
|
|