For regulatory logging we have to keep all builds of a pipeline, which reaching production.
These are the successful ones.
All other can be deleted after some time.
This should be a new property of the buildDiscarder
These configuration should be depending on the branch, maybe this last part can be solved by a when expresssion but maybe a Multi branch configuration of buildDiscarder is required.