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

ComputedFolders do not show a Disable/Enable button

    XMLWordPrintable

Details

    • cloudbees-folder:6.12

    Description

      Although a ComputedFolder supports the disable functionality and can be used by appending /disable to the folder URL, they do not show the Enable/Disable button in the UI.

      According to the code, I think it should work https://github.com/jenkinsci/cloudbees-folder-plugin/blob/cloudbees-folder-6.11/src/main/resources/com/cloudbees/hudson/plugins/folder/AbstractFolder/view-index-top.jelly#L45-L68 but Multibranch / Organization folder fo not show that button. The UI seeems to match that Jelly but never passes the condition !it.supportsMakeDisabled()

      Attachments

        Issue Links

          Activity

            After further investigation, the problem is that the AbstractFolder#supportsMakeDisabled and ComputedFolder#supportsMakeDisabled are protected methods and in that case jelly just pass through <j:when test="${!it.supportsMakeDisabled()}">.
            Could not find the documentation about method visibility requirements for jelly though.

            allan_burdajewicz Allan BURDAJEWICZ added a comment - After further investigation, the problem is that the AbstractFolder#supportsMakeDisabled and ComputedFolder#supportsMakeDisabled are protected methods and in that case jelly just pass through <j:when test="${!it.supportsMakeDisabled()}"> . Could not find the documentation about method visibility requirements for jelly though.

            People

              allan_burdajewicz Allan BURDAJEWICZ
              allan_burdajewicz Allan BURDAJEWICZ
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: