Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTaskByPipeline ¶ added in v0.15.0
GetTaskByPipeline return most recent tasks @Summary Get tasks, only the most recent tasks will be returned @Tags framework/task @Accept application/json @Param pipelineId path int true "pipelineId" @Success 200 {object} getTaskResponse @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /pipelines/{pipelineId}/tasks [get]
func RerunTask ¶
RerunTask rerun the specified the task. If taskId is 0, all failed tasks of this pipeline will rerun @Summary rerun tasks @Tags framework/task @Accept application/json @Param pipelineId path int true "pipelineId" @Param request body rerunRequest false "specify the task to rerun. If it's 0, all failed tasks of this pipeline will rerun" @Success 200 {object} shared.ApiBody @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /pipelines/{pipelineId}/tasks [post]
Types ¶
This section is empty.