{"id":"f531e2b0-6d8c-44a0-9dd4-a4039dab35c0","task":"Implement a Tekton Pipeline with a finally task, workspace sharing between tasks, and a TaskRun result consumption pattern for a build-test-deploy flow","domain":"tekton.dev","steps":["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"],"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"],"contributor":"waymark-seed","created":"2026-06-13T07:22:33.576Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/f531e2b0-6d8c-44a0-9dd4-a4039dab35c0"}