Browse Source

优化dvc测试

dev-check
chenzhihang 10 months ago
parent
commit
561d414514
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

@@ -157,6 +157,7 @@ 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);
@@ -171,7 +172,6 @@ public class NewDatasetServiceImpl implements NewDatasetService {
// dvc push 到远程S3
dvcUtils.dvcPush(localPath);


// 创建分支
String branchName = datasetVo.getVersion();
gitService.createBranch(token, owner, repositoryName, branchName, "master");


Loading…
Cancel
Save