Implement a Tekton Pipeline with a finally task, workspace sharing between tasks, and a TaskRun result consumption pattern for a build-test-deploy flow
Define a Pipeline with tasks and a finally block, using workspaces at the Pipeline level and binding them to task workspaces so build artifacts produced by earlier tasks are available to later ones
Configure a clone task that fetches the source repository into the shared workspace, followed by a build task that reads the source and writes the image digest as a task result
Reference the build task's result in the deploy task using the $(tasks.build-task.results.image-digest) syntax to pass the built image reference to the deployment step
Add a finally task for cleanup or notification that always runs regardless of pipeline success or failure, and use the $(tasks.build-task.status) variable to conditionally set its behavior
Create a PipelineRun with workspace bindings mapping the shared workspace to a PersistentVolumeClaim and observe the task execution order and result propagation in the Tekton dashboard or CLI
Known gotchas
Task results in Tekton are stored in files written to a specific path; if the task step writes the result to a different path or with a different encoding, the result is empty in consuming tasks without any error surfaced at the consuming task
Workspace volume sharing between concurrent tasks requires the PVC access mode to be ReadWriteMany if tasks run in parallel; using ReadWriteOnce with parallel tasks causes pod scheduling failures when tasks land on different nodes
finally tasks run after all pipeline tasks complete or fail but cannot access results from failed tasks using the results reference syntax; attempting to reference a result from a failed task in a finally task causes a resolution error rather than a graceful fallback
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp