
Tekton PipelineRun Trigger
CertifiedTrigger on completed Tekton PipelineRuns
Tekton PipelineRun Trigger
Trigger on completed Tekton PipelineRuns
Polls terminal PipelineRuns and stores a namespace KV Store watermark to avoid duplicate executions.
type: io.kestra.plugin.tekton.pipelinerun.TriggerExamples
React when a PipelineRun finishes.
id: tekton_finished
namespace: company.team
triggers:
- id: run_finished
type: io.kestra.plugin.tekton.pipelinerun.Trigger
namespace: ci
labelSelector: tekton.dev/pipeline=build-and-test
interval: PT1M
tasks:
- id: log
type: io.kestra.plugin.core.log.Log
message: "PipelineRun {{ trigger.name }} ended with {{ trigger.status }}"
Properties
allowConcurrent boolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
connection
Kubernetes connection
Connection settings for the Kubernetes cluster. When omitted, Fabric8 discovers credentials from system properties, environment variables, kubeconfig, or the in-cluster service account.
inheritClusterConfig booleanstring
trueInherit cluster auto-configuration
When true, explicit connection fields override the ambient kubeconfig or in-cluster configuration.
interval string
PT1MdurationPolling interval
labelSelector string
Label selector
Kubernetes label selector applied to PipelineRuns.
limit integerstring
100PipelineRuns per page
Number of PipelineRuns fetched per Kubernetes page. Every page is read on each poll when a continuation token is returned. Defaults to 100; must be between 1 and 1000. Use a labelSelector to keep trigger polling focused.
namespace string
defaultTekton namespace
Namespace where the PipelineRun is managed.
stopAfter array
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
completionTime string
date-timeRun completion time
conditions array
Run conditions
io.kestra.plugin.tekton.model.TektonCondition
Last transition time
Condition message
Condition reason
Condition status
Condition type
name string
Run name
namespace string
Run namespace
results object
Run results
startTime string
date-timeRun start time
status string
Run status
True, False, or Unknown from the Tekton Succeeded condition.