Last remaining build is not discarded

XMLWordPrintable

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Environment:
      Jenkins 2.303.1
      Enhanced Old Build Discarder plugin 1.4

      When settingĀ 

      buildDiscarder([$class: 'EnhancedOldBuildDiscarder', artifactDaysToKeepStr: '',
                                                           artifactNumToKeepStr: '',
                                                           daysToKeepStr: '7',
                                                           numToKeepStr: '',
                                                           discardOnlyOnSuccess: false,
                                                           holdMaxBuilds: false]),
      

      in properties, the build is not removed after 7 days if there is only one build remaining.
      The documentation for "Days to keep builds" states:

      if not empty, build records are only kept up to this number of days
      

      so I would assume that the build should be discarded even if it is the last remaining build.

            Assignee:
            Unassigned
            Reporter:
            Christoph VogtlƤnder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: