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

Allow different "Discard Old Build" options per branch on multibranch pipelines

    XMLWordPrintable

Details

    Description

      Currently I'm setting a buildDiscarder option in my declarative Jenkinsfile.

      The problem is that I cannot setup a different strategy per branch.

      Why do it need this? Well, I'd like to keep during more time the build and artifacts of the master and release/* branches while I keep a low number for any other branch.

      I'm sure this will be useful for a lot of people.

      Attachments

        Activity

          c3s4r Cesar Salazar created issue -
          ento Marica Odagaki made changes -
          Field Original Value New Value
          Component/s workflow-multibranch-plugin [ 21465 ]
          abayer Andrew Bayer made changes -
          Assignee nkns165 [ nkns165 ] Andrew Bayer [ abayer ]
          abayer Andrew Bayer made changes -
          Component/s pipeline-model-definition-plugin [ 21706 ]
          Component/s discard-old-build-plugin [ 17422 ]
          Component/s workflow-multibranch-plugin [ 21465 ]
          abayer Andrew Bayer made changes -
          Assignee Andrew Bayer [ abayer ]

          People

            Unassigned Unassigned
            c3s4r Cesar Salazar
            Votes:
            12 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated: