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

Extension point for marking generated items

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-32596 [ JENKINS-32596 ]
            Hide
            jglick Jesse Glick added a comment -

            As outlined in JENKINS-32596, this could perhaps also be used to remove some hacks in the way CONFIGURE is currently denied on branch projects as well as multibranch folders inside organization folders. Denying DELETE is however trickier since that is sensitive to the branch liveness status, as seen here, whereas the branch project should be considered “generated” whether the branch is alive or dead.

            Show
            jglick Jesse Glick added a comment - As outlined in JENKINS-32596 , this could perhaps also be used to remove some hacks in the way CONFIGURE is currently denied on branch projects as well as multibranch folders inside organization folders. Denying DELETE is however trickier since that is sensitive to the branch liveness status, as seen here , whereas the branch project should be considered “generated” whether the branch is alive or dead.
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-37220 [ JENKINS-37220 ]
            jglick Jesse Glick made changes -
            Component/s configuration-as-code-plugin [ 23170 ]
            jglick Jesse Glick made changes -
            Assignee Stephen Connolly [ stephenconnolly ]
            rtyler R. Tyler Croy made changes -
            Labels api essentials api
            Hide
            daspilker Daniel Spilker added a comment -

            Sounds reasonable and should be easy to implement in job-dsl.

            Show
            daspilker Daniel Spilker added a comment - Sounds reasonable and should be easy to implement in job-dsl.
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-12548 [ JENKINS-12548 ]

              People

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

                Dates

                • Created:
                  Updated: