I have setup the save always to true such that the cache step should always fail even if one of the tasks fail. See screenshots below:
Save always set to true in step:

Then further in the job a step fails but the post cache step is not run unlike the post repositry setup:

Related to
#1242