|
|
|
@@ -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); |
|
|
|
|