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

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


      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.

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