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

"Keep this build forever" button not visible if BuildDiscarder other than LogRotator is configured

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins 1.565.1

      The button "Keep this build forever" is not visible in the build summary page when a BuildDiscarder other than LogRotator is configured. I don't think this is intentionally.

      The problem is in Jelly file core\src\main\resources\hudson\model\Run\logKeep.jelly, line 30:

      <j:if test="${it.parent.logRotator!=null and it.canToggleLogKeep()}">
      

      Should be fixed to:

      <j:if test="${it.parent.buildDiscarder!=null and it.canToggleLogKeep()}">
      

          [JENKINS-26438] "Keep this build forever" button not visible if BuildDiscarder other than LogRotator is configured

          Matthias Moers created issue -
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Alexander A made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 2443 (Web Link)" [ 14601 ]
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Labels New: lts-candidate
          Oliver Gondža made changes -
          Labels Original: lts-candidate New: 2.7.2-fixed lts-candidate
          Oliver Gondža made changes -
          Labels Original: 2.7.2-fixed lts-candidate New: 2.7.2-fixed
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160505 ] New: JNJira + In-Review [ 196461 ]

            danielbeck Daniel Beck
            matmoers Matthias Moers
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: