Output Markdown to the Overview Tab (PipelineRuns & TaskRuns)
This guide shows you how to surface human‑readable reports in the Overview tab of both PipelineRuns and TaskRuns by writing Markdown into a Task Result named overview-markdown.
TOC
Prerequisites
- Tekton Pipelines installed on your cluster.
- Optional but recommended: Tekton Results deployed so your summaries remain queryable even after old TaskRuns/PipelineRuns are garbage‑collected.
Why Tekton Results? If your cluster prunes runs aggressively, the in‑cluster TaskRun/PipelineRun objects (and their results) may disappear. Tekton Results provides a central store so historical Overview reports remain accessible.
How it works
- The UI reads a Task's result with the exact name
overview-markdown. - Whatever Markdown you write into that result file will be rendered in the run's Overview tab.
- In a Pipeline, each Task can produce its own
overview-markdown, and the Overview tab shows them grouped by Task. - You do not need to write to a Pipeline result for the Overview tab; write to the Task's
overview-markdowninstead.
Limits: A single Task's result value is limited to 4 KB by default. Keep summaries concise; link out to larger artifacts when needed. If you want more complex layout, you can refer to Customize Task Overview with Templates. If you want to configure the result size limit, you can refer to Result Limit Exceeded When Writing Tekton Task Results.
Steps
1. Define a Task result named overview-markdown
Create (or update) your Task so it declares a string result with that exact name.
In one of the Task's steps, write Markdown to $(results.overview-markdown.path).
Example Task (replace <image> as needed):
Keep the Markdown short and focused. A single Task's result value is limited to 4 KB by default. For long reports:
- Upload the full artifact (e.g., HTML, JSON, PDF) to your storage or artifact repository.
- Put a link in the Markdown (e.g.,
[Full report](https://artifact.example.com/run/123/report.html)).
If you want to configure the result size limit, you can refer to Result Limit Exceeded When Writing Tekton Task Results.
2. Run the Task
Create a TaskRun referencing your Task, wait for it to complete.
Example TaskRun:
3. View the overview
After TaskRun completes, open the TaskRun's Overview tab to see the rendered Markdown.
If nothing renders, check the step logs to confirm the file was written to $(results.overview-markdown.path) and that the result name is correct.
4. (Optional) Use it in Pipelines
In a Pipeline, each Task can output its own overview-markdown. The Overview tab will display separate sections per Task (e.g., lint, scan, build).
You do not need to the Pipeline's results for this feature. Only Task results are rendered in the Overview tab.
Example Pipeline (replace <lint-image> <scan-image> as needed):
Example PipelineRun:
Open the PipelineRun's Overview tab. You should see two Markdown sections: lint and scan.
Tips
- Exact name matters: The result must be named
overview-markdown(case‑sensitive). - Write to the right place: Always write to
$(results.overview-markdown.path). You don't need a Pipeline‑level result. - Size limit: A single Task result value is capped at 4 KB by default. If you want to configure the result size limit, you can refer to Result Limit Exceeded When Writing Tekton Task Results.
Troubleshooting
- Nothing shows in the Overview tab
- Check the result name: it must be exactly
overview-markdown. - Verify the step wrote to
$(results.overview-markdown.path). - Confirm your UI version supports this feature.
- Check the result name: it must be exactly
- Pod logs show termination message overflow