Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50887

Need a buildDiscarder in a pipeline, which deletes only failing jobs in master branch

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: In Review (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core, plugin-proposals
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.107.2
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

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

          Show
          oleg_nenashev Oleg Nenashev added a comment - BuildDiscarder is an extension point, so it can be implemented in a plugin. Apparently Martin d'Anjou was proposing a related project to GSoC this year: https://jenkins.io/projects/gsoc/gsoc2018-project-ideas/#discard-builds-step-plugin
          Hide
          tkleiber Torsten Kleiber added a comment -

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

          Show
          tkleiber Torsten Kleiber added a comment - Have added branch as filter to this project. Build Status is already there. When are the projects selected which are implemented?
          Hide
          deepchip Martin d'Anjou added a comment -

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

          Show
          deepchip Martin d'Anjou added a comment - Torsten Kleiber , see the GSoC schedule . In 2018 projects are announced on April 23, and the GSoC program ends on August 22.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

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

          Show
          oleg_nenashev Oleg Nenashev added a comment - Just to provide an update, unfortunately this project won't happen in GSoC this year
          Hide
          deepchip Martin d'Anjou added a comment -

          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"?

          Show
          deepchip Martin d'Anjou added a comment - 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"?
          Hide
          deepchip Martin d'Anjou added a comment -

          Torsten Kleiber, 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.

          Show
          deepchip Martin d'Anjou added a comment - Torsten Kleiber , 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.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tkleiber Torsten Kleiber
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: