Tekton runtime resources, specifically TaskRuns
and PipelineRuns
,
emit events when they are executed, so that users can monitor their lifecycle
and react to it. Tekton emits kubernetes events, that can be retrieve from the resource via
kubectl describe [resource]
.
No events are emitted for Conditions
today (tektoncd#2461).
TaskRun
events are generated for the following Reasons
:
Started
: this is triggered the first time theTaskRun
is picked by the reconciler from its work queue, so it only happens if web-hook validation was successful. Note that this event does not imply that a step started executing, as several conditions must be met first:- task and bound resource validation must be successful
- attached conditions must run successfully
- the
Pod
associated to theTaskRun
must be successfully scheduled
Succeeded
: this is triggered once all steps in theTaskRun
are executed successfully, including post-steps injected by Tekton.Failed
: this is triggered if theTaskRun
is completed, but not successfully. Causes of failure may be: one the steps failed, theTaskRun
was cancelled or theTaskRun
timed out.
PipelineRun
events are generated for the following Reasons
:
Succeeded
: this is triggered once allTasks
reachable via the DAG are executed successfully.Failed
: this is triggered if thePipelineRun
is completed, but not successfully. Causes of failure may be: one theTasks
failed or thePipelineRun
was cancelled.