Tekton is an open-source framework for creating CI/CD systems. It allows developers to build, test, and deploy across cloud providers and on-premise systems. Tekton provides a set of Kubernetes CRDs (Custom Resource Definitions) for defining and running continuous integration and delivery pipelines.
When working with Tekton, you might encounter an error stating that a PipelineRun artifact not found. This symptom indicates that a specific artifact expected during the execution of a PipelineRun is missing.
The error occurs when a PipelineRun expects an artifact that has not been produced or is not accessible. This can happen due to misconfigured Tasks, incorrect paths, or failed previous steps that did not generate the required outputs.
To resolve the issue of missing artifacts in a PipelineRun, follow these steps:
Ensure that each Task in your Pipeline is correctly configured to produce the expected outputs. Check the Task definitions for any errors or misconfigurations. You can use the kubectl get taskruns
command to inspect the TaskRuns and their logs:
kubectl get taskruns -n <namespace>
Review the logs to identify any errors during Task execution.
Ensure that the paths specified for artifacts in your Pipeline and Task definitions are correct. Double-check the PipelineResource
or Workspace
configurations to ensure they match the expected paths.
Ensure that the service account used by Tekton has the necessary permissions to access the artifact storage. You can verify the permissions by checking the RoleBindings and ClusterRoleBindings:
kubectl get rolebindings -n <namespace>
After making the necessary corrections, re-run the Pipeline to verify that the issue is resolved. Use the tkn
CLI to start the PipelineRun:
tkn pipeline start <pipeline-name> -n <namespace>
For more information on Tekton and troubleshooting, consider visiting the following resources:
Let Dr. Droid create custom investigation plans for your infrastructure.
Book Demo