When using multibranch projects or Job DSL, some Item s (usually Job or AbstractFolder) have a config.xml which is generated by some process and not intended to be editable by the user. This information is not currently available to core or other plugins (backup, etc.); it should be. Suggest something like

      public interface GeneratedItemMarker extends ExtensionPoint {
          boolean isGenerated(Item item);
      }
      

      which would be implemented by job-dsl to to check for GeneratedObjectsAction as here and by branch-api by checking whether the parent is MultiBranchProject or OrganizationFolder.

          [JENKINS-50173] Extension point for marking generated items

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-32596 [ JENKINS-32596 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-37220 [ JENKINS-37220 ]
          Jesse Glick made changes -
          Component/s New: configuration-as-code-plugin [ 23170 ]
          Jesse Glick made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ]
          R. Tyler Croy made changes -
          Labels Original: api essentials New: api
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-12548 [ JENKINS-12548 ]

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: