Skip to content

Commit

Permalink
feat:支持在父流水线中查看异步执行的子流水线的状态 TencentBlueKing#10260
Browse files Browse the repository at this point in the history
  • Loading branch information
hejieehe committed Jul 8, 2024
1 parent 80656b5 commit 7411c23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ interface BuildSubPipelineResource {
@Parameter(description = "构建ID", required = true)
@HeaderParam(AUTH_HEADER_DEVOPS_BUILD_ID)
buildId: String,
@Parameter(description = "当前流水线执行次数", required = false)
@HeaderParam(AUTH_HEADER_DEVOPS_EXECUTE_COUNT)
executeCount: Int?,
@Parameter(description = "要启动的流水线ID", required = true)
@PathParam("callProjectId")
callProjectId: String,
Expand All @@ -140,7 +137,10 @@ interface BuildSubPipelineResource {
@QueryParam("runMode")
runMode: String,
@Parameter(description = "启动参数", required = true)
values: Map<String, String>
values: Map<String, String>,
@Parameter(description = "当前流水线执行次数", required = false)
@HeaderParam(AUTH_HEADER_DEVOPS_EXECUTE_COUNT)
executeCount: Int? = 1
): Result<ProjectBuildId>

@Operation(summary = "获取子流水线启动参数")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ class BuildSubPipelineResourceImpl @Autowired constructor(
projectId: String,
parentPipelineId: String,
buildId: String,
executeCount: Int?,
callProjectId: String,
callPipelineId: String,
atomCode: String,
taskId: String,
runMode: String,
values: Map<String, String>
values: Map<String, String>,
executeCount: Int?
): Result<ProjectBuildId> {
return subPipeService.callPipelineStartup(
projectId = projectId,
Expand Down

0 comments on commit 7411c23

Please sign in to comment.