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

Empty views are not visible in Folder's tabs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Review (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: build-pipeline-plugin
    • Labels:
      None
    • Environment:
      build-pipeline-plugin:1.8.8
    • Similar Issues:

      Description

      When a view is empty, it disappear from the Folder's tab. It is then impossible to know if a folder has Build Pipeline views defined or not. The only way to know is to look at the config.xml that contains obsolete views configuration.

      A common scenario for which it could happen is if the Initial Job is moved. For example:

      1. I create a simple view "TestView" at Jenkins root 00-view-config-before-move.png
      2. I show up in the main page 03-view-config-after-move.xml
      3. I move the initial Job "testJob" under the folder "TestFolder". The view disappear: 02-view-tab-after-move.png
      4. I check the configuration of the view at $JENKINS_URL/view/TestView/config.xml. See 03-view-config-after-move.xml

      Hiding the tab seems wrong as this is the only way to know there is a view configured at a specific level. At least Administrator or user with "View/Configure" privilege should have the right to see those.

      Code

      An "empty" view in the code is treated as a non permitted view: https://github.com/jenkinsci/build-pipeline-plugin/blob/build-pipeline-plugin-1.5.8/src/main/java/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView.java#L772-L774.

        Attachments

          Issue Links

            Activity

            Show
            allan_burdajewicz Allan BURDAJEWICZ added a comment - This was introduced a long time ago: https://github.com/jenkinsci/build-pipeline-plugin/commit/87147d95eaacdc9aa1ae5de71d824bfad792d6b8#diff-bd390eb75b0c4d10126f6a3bce23385f

              People

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

                Dates

                • Created:
                  Updated: