|
|
|
@@ -117,7 +117,8 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
// 命令行操作 git clone 项目地址 |
|
|
|
dvcUtils.gitClone(localPath, projectUrl, branchName, gitLinkUsername, gitLinkPassword); |
|
|
|
String s3Path = "management-platform-files" + "/" + relatePath + "/" + branchName; |
|
|
|
|
|
|
|
//干掉目标文件夹 |
|
|
|
dvcUtils.deleteDirectory(datasetPath); |
|
|
|
dvcUtils.moveFiles(sourcePath, datasetPath); |
|
|
|
// 拼接生产的元数据后写入yaml文件 |
|
|
|
datasetVo.setCreateBy(String.valueOf(StringUtils.isNotEmpty((String) userInfo.get("nickname")) ? userInfo.get("nickname") : userInfo.get("login"))); |
|
|
|
@@ -188,11 +189,13 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
dvcUtils.createLocalBranchBasedOnMaster(localPath, branchName); |
|
|
|
|
|
|
|
//dvc checkout |
|
|
|
dvcUtils.dvcPull(localPath); |
|
|
|
dvcUtils.dvcCheckout(localPath); |
|
|
|
|
|
|
|
// 准备数据 |
|
|
|
String s3Path = "management-platform-files" + "/" + relatePath + "/" + branchName; |
|
|
|
|
|
|
|
//干掉目标文件夹 |
|
|
|
dvcUtils.deleteDirectory(datasetPath); |
|
|
|
dvcUtils.moveFiles(sourcePath, datasetPath); |
|
|
|
// 拼接生产的元数据后写入yaml文件 |
|
|
|
datasetVo.setCreateBy(String.valueOf(StringUtils.isNotEmpty((String) userInfo.get("nickname")) ? userInfo.get("nickname") : userInfo.get("login"))); |
|
|
|
|