Browse Source

优化dvc测试

dev-check
chenzhihang 10 months ago
parent
commit
ec6dadd55c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java View File

@@ -145,6 +145,7 @@ public class NewDatasetServiceImpl implements NewDatasetService {
String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git";

// 创建master空分支
dvcUtils.gitClone(localPath, projectUrl, "master", gitLinkUsername, gitLinkPassword);
// 拼接生产的元数据后写入yaml文件
datasetVo.setCreateBy(String.valueOf(StringUtils.isNotEmpty((String) userInfo.get("nickname")) ? userInfo.get("nickname") : userInfo.get("login")));
datasetVo.setUpdateTime(DateUtils.getTime());
@@ -157,7 +158,6 @@ public class NewDatasetServiceImpl implements NewDatasetService {

// dvc init 初始化
dvcUtils.mkdir(datasetPath);
dvcUtils.gitClone(localPath, projectUrl, "master", gitLinkUsername, gitLinkPassword);
dvcUtils.dvcInit(localPath);
// 配置远程S3地址
dvcUtils.dvcRemoteAdd(localPath, s3Path);


Loading…
Cancel
Save