Results allow Tasks and Pipelines to output values that can be used by subsequent Tasks or surfaced to users.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tektoncd/pipeline/llms.txt
Use this file to discover all available pages before exploring further.
TaskResult
Defines a result produced by a Task.Name of the result.Must be a valid identifier.
Type of the result.Values:
string- Single string valuearray- Array of stringsobject- Key-value pairs
Human-readable description of the result.
For object-type results, defines the structure of keys.
Expression to retrieve the result value from a Step.Example:
$(steps.stepName.results.resultName)StepResult
Defines a result produced by a Step.Name of the step result.
Type of the result:
string, array, or object.Description of the result.
For object results, property definitions.
TaskRunResult
Represents the actual result value in a TaskRun status.Name of the result.
Type of the result.
The actual value produced.Can be string, array, or object depending on type.
PipelineResult
Defines a result produced by a Pipeline.Name of the pipeline result.
Type of the result.
Description of the result.
Expression referencing a task result.Example:
$(tasks.taskName.results.resultName)Writing Results
Results are written to files in the container filesystem:String Results
Array Results
Object Results
Reading Results
In Subsequent Tasks
Reference results from previous tasks:In Pipeline Results
Surface task results as pipeline results:In Finally Tasks
Finally tasks can access results from DAG tasks:Result Size Limits
Results have size limits:- String results: 4096 bytes (4 KB) by default
- Array/Object results: Configured per installation
TaskRunResultLargerThanAllowedLimit.
Step Results
Steps can produce results that tasks aggregate:Example: Complete Task with Results
Best Practices
- Keep results small - Use results for metadata, not large data
- Use descriptive names - Make result purpose clear
- Document result format - Describe expected structure
- Validate result content - Check that written values are valid
- Use appropriate types - Choose string/array/object based on data
- Write atomically - Write complete result value in one operation