Skip to content

Commit

Permalink
bug: 构建历史中没有流水线完成后上传的构件 TencentBlueKing#6538
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Apr 28, 2022
1 parent 328cfba commit fccc81f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ dependencies {
api(project(":core:common:common-web"))
api(project(":core:common:common-service"))
api("com.google.code.gson:gson")
api("com.tencent.bkrepo:api-generic")
api("com.tencent.bkrepo:api-repository")
api("com.tencent.bk.repo:api-generic")
api("com.tencent.bk.repo:api-repository")
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ import com.tencent.bkrepo.repository.pojo.metadata.UserMetadataSaveRequest
import com.tencent.bkrepo.repository.pojo.node.NodeDetail
import com.tencent.bkrepo.repository.pojo.node.NodeInfo
import com.tencent.bkrepo.repository.pojo.node.NodeSizeInfo
import com.tencent.bkrepo.repository.pojo.node.user.UserNodeCopyRequest
import com.tencent.bkrepo.repository.pojo.node.user.UserNodeMoveRequest
import com.tencent.bkrepo.repository.pojo.node.user.UserNodeMoveCopyRequest
import com.tencent.bkrepo.repository.pojo.node.user.UserNodeRenameRequest
import com.tencent.bkrepo.repository.pojo.project.UserProjectCreateRequest
import com.tencent.bkrepo.repository.pojo.repo.RepoCreateRequest
Expand Down Expand Up @@ -528,13 +527,12 @@ class BkRepoClient constructor(
" toPath: $toPath"
)
val url = "${getGatewaytUrl()}/bkrepo/api/service/repository/api/node/move"
val requestData = UserNodeMoveRequest(
val requestData = UserNodeMoveCopyRequest(
srcProjectId = projectId,
srcRepoName = repoName,
srcFullPath = fromPath,
destProjectId = projectId,
destRepoName = repoName,
destPath = toPath,
destFullPath = toPath,
overwrite = true
)
Expand Down Expand Up @@ -573,14 +571,13 @@ class BkRepoClient constructor(
" toProject: $toProject, toRepo: $toRepo, toPath: $toPath"
)
val url = "${getGatewaytUrl()}/bkrepo/api/service/repository/api/node/copy"
val requestData = UserNodeCopyRequest(
val requestData = UserNodeMoveCopyRequest(
srcProjectId = fromProject,
srcRepoName = fromRepo,
srcFullPath = fromPath,
destProjectId = toProject,
destRepoName = toRepo,
destFullPath = toPath,
destPath = toPath,
overwrite = true
)
val request = Request.Builder()
Expand Down

0 comments on commit fccc81f

Please sign in to comment.