How to disable retry button on pipeline fail

Is there any way to disable those buttons?

image
image

My pipeline needs all previous steps to be run not just the failed tasks