You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command tkn pr delete -p <pipeline-name> --keep 2 should delete all the pipeline runs of the pipeline <pipeline-name> except for the latest 2 pipeline runs
Actual Behavior
The command tkn pr delete -p <pipeline-name> --keep 2 is working as tkn pr delete --keep 2, it is deleting all the pipeline runs and keeping the latest 2 pipeline runs
Create multiple pipelines
Start multiple pipeline runs from the created pipelines
run the command tkn pr delete -p <pipeline-name> --keep n
Additional Info
Below are the command logs
Below output shows that there are pipelineruns for pipeline first-pipeline and second-pipeline
$ tkn pr ls
NAME STARTED DURATION STATUS
second-pipeline-run-fv2jv 3 minutes ago --- Running
second-pipeline-run-6mv76 3 minutes ago --- Running
first-pipeline-run-7gds5 4 minutes ago --- Running
first-pipeline-run-t5rl8 4 minutes ago --- Running
first-pipeline-run-zmr6q 4 minutes ago --- Running
first-pipeline-run-drmsv 4 minutes ago --- Running
first-pipeline-run-q2h9c 5 minutes ago --- Running
second-pipeline-run-vjhqw 10 minutes ago 47 seconds Cancelled(PipelineRunCancelled)
second-pipeline-run-b8gth 27 minutes ago 10 minutes Succeeded
Below running the delete command
$ tkn pr delete -p first-pipeline --keep 1
Are you sure you want to delete all pipelineruns in namespace "veeresh-testing" keeping 1 pipelineruns (y/n): y
All but 1 PipelineRuns deleted in namespace "veeresh-testing"
We can see that the tkn pr delete -p first-pipeline --keep 1 deleted the pipeline runs of second-pipeline as well
$ tkn pr ls
NAME STARTED DURATION STATUS
second-pipeline-run-fv2jv 4 minutes ago --- Running
The text was updated successfully, but these errors were encountered:
VeereshAradhya
changed the title
tkn pr delete -p <pipeline-name> --keep n is not working as expected
tkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> option
May 6, 2020
VeereshAradhya
changed the title
tkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> option
tkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> flag
May 6, 2020
VeereshAradhya
changed the title
tkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> flagtkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> flag
May 6, 2020
VeereshAradhya
changed the title
tkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> flagtkn pr delete -p <pipeline-name> --keep n neglects the -p <pipeline-name> flag
May 6, 2020
Version and Operating System
tkn Version:
v0.9.0
Operating System:
All
Expected Behavior
The command
tkn pr delete -p <pipeline-name> --keep 2
should delete all the pipeline runs of the pipeline<pipeline-name>
except for the latest 2 pipeline runsActual Behavior
The command
tkn pr delete -p <pipeline-name> --keep 2
is working astkn pr delete --keep 2
, it is deleting all the pipeline runs and keeping the latest 2 pipeline runstkn pr delete -p <pipeline-name> --keep n
Additional Info
Below are the command logs
Below output shows that there are pipelineruns for pipeline
first-pipeline
andsecond-pipeline
Below running the delete command
We can see that the
tkn pr delete -p first-pipeline --keep 1
deleted the pipeline runs ofsecond-pipeline
as wellThe text was updated successfully, but these errors were encountered: