Skip to content

Commit

Permalink
feat: 插件发布、下载适配制品库全球化 TencentBlueKing#8560
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Apr 3, 2023
1 parent 178029e commit 20676c1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,9 @@ class BkRepoClient constructor(
setting = ReplicaSetting(conflictStrategy = ConflictStrategy.OVERWRITE),
remoteClusterIds = emptySet()
)
val devopsToken = EnvironmentUtil.gatewayDevopsToken()
val request = Request.Builder().url(url).header(BK_REPO_UID, userId)
.let { if (null == devopsToken) it else it.header("X-DEVOPS-TOKEN", devopsToken) }
.post(taskCreateRequest.toJsonString().toRequestBody(JSON_MEDIA_TYPE))
.build()
doRequest(request).resolveResponse<Response<Void>>()
Expand Down

0 comments on commit 20676c1

Please sign in to comment.