timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-50887] Need a buildDiscarder in a pipeline, which deletes only failing jobs in master branch #9775

Open timja opened 6 years ago

timja commented 6 years ago

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.


Originally reported by tkleiber, imported from: Need a buildDiscarder in a pipeline, which deletes only failing jobs in master branch
  • status: In Review
  • priority: Critical
  • resolution: Fixed
  • resolved: 2018-06-22T03:59:24+00:00
  • imported: 2022/01/10
timja commented 6 years ago

oleg_nenashev:

BuildDiscarder is an extension point, so it can be implemented in a plugin.
Apparently deepchip was proposing a related project to GSoC this year: https://jenkins.io/projects/gsoc/gsoc2018-project-ideas/#discard-builds-step-plugin

timja commented 6 years ago

tkleiber:

Have added branch as filter to this project. Build Status is already there. When are the projects selected which are implemented?

timja commented 6 years ago

deepchip:

tkleiber, see the GSoC schedule. In 2018 projects are announced on April 23, and the GSoC program ends on August 22.

timja commented 6 years ago

oleg_nenashev:

Just to provide an update, unfortunately this project won't happen in GSoC this year

timja commented 5 years ago

deepchip:

The project is being proposed for GSoC 2019 see https://docs.google.com/document/d/1W7YX4Y6PhIhraEQc9G-PKLSheJ6jXKgy8HmKVz1lCqs

The proposal needs some work though.

oleg_nenashev I am not clear on how the build discarded is an extension point, is it because there is a drop down Strategy called "Log Rotation"?

timja commented 5 years ago

deepchip:

tkleiber, I am not a user of the multi-branch plugins, so I do not understand your requirement. Would you be able to explain it here or in this new proposal please? Feel free to add pictures or diagrams if that helps. Thanks.