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

Inability to control orphaned item strategy on multibranch children of an organization folder

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • branch-api-plugin
    • None

      If you create an organization folder, you can define an orphaned item strategy in its configuration screen, but this applies to the organization folder itself—in other words, whether and when its direct children (multibranch projects) may be deleted. All of the multibranch projects, which are unconfigurable, have a predefined new DefaultOrphanedItemStrategy(true, "0", "0"): delete obsolete branch projects immediately.

      It would be useful to be able to define the policy to be applied at this lower level. Could for example be an additional selector for the children's policy.

      Or at a minimum, the policy defined at the organization level should be assumed to carry over: disable deletion entirely if requested; if requested but using a nonzero daysToKeep, use the same value. (Not sure it makes sense to interpret organization-level numToKeep as that would be counting repositories, not branches, which might have entirely different typical values.)

          [JENKINS-33819] Inability to control orphaned item strategy on multibranch children of an organization folder

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-33637 [ JENKINS-33637 ]
          Manuel Recena Soto made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: Manuel Recena Soto [ recena ]
          Manuel Recena Soto made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          James Brown made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]
          Manuel Recena Soto made changes -
          Remote Link New: This issue links to "PR (Web Link)" [ 14291 ]
          Manuel Recena Soto made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Sorin Sbarnea made changes -
          Link New: This issue is related to JENKINS-35251 [ JENKINS-35251 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 169813 ] New: JNJira + In-Review [ 198700 ]

            recena Manuel Recena Soto
            jglick Jesse Glick
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: