Tekton PipelineRun cancelled

PipelineRun was manually cancelled.

Understanding Tekton

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.

Identifying the Symptom

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.

What You Observe

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.

Exploring the Issue

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.

Understanding Manual Cancellation

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.

Steps to Resolve the Issue

To resolve the issue of a cancelled PipelineRun, you can follow these steps:

Step 1: Verify the Cancellation

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.

Step 2: Restart the PipelineRun

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.

Additional Resources

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.

Never debug

Tekton

manually again

Let Dr. Droid create custom investigation plans for your infrastructure.

Book Demo
Automate Debugging for
Tekton
See how Dr. Droid creates investigation plans for your infrastructure.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid