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

"keep build forever" on a configuration in a matrix job is not kept forever

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core, matrix-project-plugin
    • None
    • Jenkins ver. 1.480.2

      Child builds that are marked as "keep forever" get deleted along with their parent build, if the parent build is not marked as "keep forever" and "Discard Old Builds" is enabled.

      Steps to reproduce:

      1. Create a multi-configuration project
      2. Enable "Discard old builds" and enter 3 for "Max # builds to keep".
      3. Add a "User-defined Axis" called "test" with values "a b c".
      4. Run the build.
      5. Go to /job/<job name>/1/test=c
      6. Click "keep this build forever"
      7. Run the build a further 3 times.

      You'll now see that build #3, along with the 'c' configuration that was marked as "keep forever" have been deleted.

      Both the 'c' configuration and, I guess, it's parent build should not be deleted by the "discard old builds" process.

            Unassigned Unassigned
            cjw296 Chris Withers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: