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 is designed to be Kubernetes-native, leveraging Kubernetes resources to define and run pipelines.
When working with Tekton, you might encounter a situation where a PipelineRun
is unexpectedly cancelled. This can halt your CI/CD process and prevent your pipeline from completing its tasks.
The primary symptom of this issue is that a PipelineRun
shows a status of 'Cancelled'. This can be observed in the Tekton dashboard or by using the kubectl
command-line tool.
The cancellation of a PipelineRun
can occur due to several reasons. In this case, the root cause is identified as a manual cancellation. This means someone with access to the Tekton dashboard or CLI has intentionally stopped the pipeline.
Manual cancellation is a feature that allows users to stop a running pipeline. This can be useful in scenarios where the pipeline is running with incorrect parameters or if an error is detected early in the process.
To resolve the issue of a cancelled PipelineRun
, you can follow these steps:
First, confirm that the PipelineRun
was indeed cancelled manually. You can do this by checking the logs or the Tekton dashboard. Use the following command to check the status:
kubectl get pipelinerun -o yaml
Look for the status
field to confirm the cancellation.
If the cancellation was unintentional or if you need to rerun the pipeline, you can restart it. Use the following command to create a new PipelineRun
:
tkn pipeline start --param1=value1 --param2=value2
Ensure you replace <pipeline-name>
and parameters with your specific pipeline details.
For more information on managing PipelineRuns
, you can refer to the Tekton PipelineRun Documentation. Additionally, the Tekton GitHub Repository is a great resource for exploring the source code and contributing to the project.
Let Dr. Droid create custom investigation plans for your infrastructure.
Book Demo