Artifacts of failed pipelines not expiring
Summary
When "Keep latest artifacts was enabled" expiration a build artifacts from pipeline with failed jobs are no longer delete until the pipeline runs successfully.
Steps to reproduce
- Make pipeline with two stage stage1-jobA -> stage2-jobA [needs stage1-jobA] stage1-jobB -> stage2-jobB [needs stage1-jobB]
- Create artifacts for all stages w/ expiration
- Force stage1-JobA to fail
- Run pipelines and note artifacts accumulation regardless of expiration
- Fix stage1-JobA note all previous artifacts deleted
What is the current bug behavior?
"Keep latest artifacts was enabled" seems to be keep artifacts of all failed pipelines.
What is the expected correct behavior?
Artifacts should expire if the pipeline files