Skip to content

Commit

Permalink
feat: 构建并推送镜像支持插件接入 TencentBlueKing#5032
Browse files Browse the repository at this point in the history
Signed-off-by: sawyersong <sawyersong@tencent.com>
  • Loading branch information
sawyersong2 committed Sep 2, 2021
1 parent 996e69d commit de59384
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ data class DockerBuildParam(
@ApiModelProperty("镜像tag列表", required = false)
val imageTagList: List<String> = emptyList(),
@ApiModelProperty("pipelineTaskId", required = false)
val pipelineTaskId: String = ""
val pipelineTaskId: String = "",
@ApiModelProperty("流水线触发用户", required = false)
val userId: String = ""
)
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class DockerHostImageService(
pipelineId = pipelineId,
buildId = buildId,
vmSeqId = vmSeqId,
userName = userName,
dockerBuildParam = dockerBuildParam,
dockerClient = dockerClient,
pipelineTaskId = elementId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ open class HandlerContext(
open val projectId: String,
open val pipelineId: String,
open val buildId: String,
open val vmSeqId: String
open val vmSeqId: String,
open val userName: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ data class ImageHandlerContext(
override val projectId: String,
override val pipelineId: String,
override val buildId: String,
override val vmSeqId: String
override val vmSeqId: String,
override val userName: String
) : HandlerContext(
projectId = projectId,
pipelineId = pipelineId,
buildId = buildId,
vmSeqId = vmSeqId
vmSeqId = vmSeqId,
userName = userName
)

0 comments on commit de59384

Please sign in to comment.