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

Global build discarders configuration isn't loaded from disk

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • 2.222.1
    • Jenkins 2.229

      The global build discarder configuration gets saved, but it's never loaded.

      On every restart, Jenkins 2.221+ will always start with the "Job Build Discarder" configured, which means

      • Any custom global build discarder configuration is lost
      • Users who don't want background build discarders get the default one.

      The latter is especially annoying given that we warn against potential data loss in changelog ( https://jenkins.io/changelog/#v2.221 ) and upgrade guide (https://jenkins.io/doc/upgrade-guide/2.222/#old-builds-may-be-deleted-by-global-build-discarders ). Even one-time vigilance on update won't be good enough to prevent potentially undesirable outcomes.

          [JENKINS-61688] Global build discarders configuration isn't loaded from disk

          Daniel Beck created issue -
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Labels New: lts-candidate
          Daniel Beck made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 4602 (Web Link)" [ 24800 ]
          Daniel Beck made changes -
          Description Original: New: The global build discarder configuration gets saved, but it's never loaded.

          On every restart, Jenkins 2.221+ will always start with the "Job Build Discarder" configured, which means
           * Any custom global build discarder configuration is lost
           * Users who don't want background build discarders get the default one.

          The latter is especially annoying given that we warn against potential data loss in changelog ( [https://jenkins.io/changelog/#v2.221] ) and upgrade guide ([https://jenkins.io/doc/upgrade-guide/2.222/#old-builds-may-be-deleted-by-global-build-discarders] ). Even one-time vigilance on update won't be good enough to prevent potentially undesirable outcomes.
          Daniel Beck made changes -
          Released As New: Jenkins 2.229
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Daniel Beck made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Reinhold Füreder made changes -
          Link New: This issue is related to JENKINS-61256 [ JENKINS-61256 ]
          Oliver Gondža made changes -
          Labels Original: lts-candidate New: 2.222.2-fixed

            danielbeck Daniel Beck
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: