tektoncd/pipeline

Display Failed Task Information in Finally Task

开放

#6,214 创建于 2023年2月23日

 (9 条评论) (1 个反应) (1 位负责人)Go (1,943 个派生)auto 404
good first issuehelp wantedkind/feature

仓库指标

星标
 (9,013 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Currently, when a pipeline fails, the Finally task is executed. I can trigger a failed or succesfull Finally with (as an example):

      when:
        - input: $(tasks.status)
          operator: in
          values: ["Failed"]

However, $(tasks.status) does not provide information about which task failed. I would like to see a parameter that is passed to the Finally task, indicating which task failed This information could be used in a script to post to GIT (comit/PR) for example, indicating which task failed and why and maybe provide some context.

I've tried tasks[*] for example. But that doesnt work (see https://tekton.dev/docs/pipelines/variables/)

贡献者指南