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

Cannot assign a JobGroup to a Nested (sub) View

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: prioritysorter-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.554.1
      Priority Sorter Plugin 2.8
      Nested View Plugin 1.14
    • Similar Issues:

      Description

      When sub views are created using the Nested Views Plugins, these sub views cannot be selected when assigning Job Priorities to JobGroups.

      To reproduce:

      1. Install Priority Sorter and the Nested View Plugin
      2. Create a new View and choose the "Nested View" type
      3. Create a couple of sub views in this Nested View
      4. Go to http://jenkins:8080/advanced-build-queue/ and Add a Job Group

      What is expected

      • All normal Views and all Nested Views and all views in the Nested Views are listed

      Actual outcome

      • Only the normal Views and the Nested Views are show. The sub views are not shown

        Attachments

          Issue Links

            Activity

            Hide
            emsa23 Magnus Sandberg added a comment -

            Yes, right now you can only assign on "top-level" views, this is something I would like to fix when I get time.

            Show
            emsa23 Magnus Sandberg added a comment - Yes, right now you can only assign on "top-level" views, this is something I would like to fix when I get time.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: emsa23
            Path:
            pom.xml
            src/main/java/jenkins/advancedqueue/jobinclusion/strategy/ViewBasedJobInclusionStrategy.java
            src/test/java/jenkins/advancedqueue/test/NestedViewTest.java
            src/test/resources/jenkins/advancedqueue/test/NestedViewTest/config.xml
            src/test/resources/jenkins/advancedqueue/test/NestedViewTest/jenkins.advancedqueue.PriorityConfiguration.xml
            src/test/resources/jenkins/advancedqueue/test/NestedViewTest/jenkins.advancedqueue.PrioritySorterConfiguration.xml
            http://jenkins-ci.org/commit/priority-sorter-plugin/c4fd31bffee58f7222ed1c72a1d9ca4794f9c0af
            Log:
            Added support for ViewGroup in ViewBasedJobInclusion.

            This also fixes JENKINS-24962 as NestedView is based on ViewGroup

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: emsa23 Path: pom.xml src/main/java/jenkins/advancedqueue/jobinclusion/strategy/ViewBasedJobInclusionStrategy.java src/test/java/jenkins/advancedqueue/test/NestedViewTest.java src/test/resources/jenkins/advancedqueue/test/NestedViewTest/config.xml src/test/resources/jenkins/advancedqueue/test/NestedViewTest/jenkins.advancedqueue.PriorityConfiguration.xml src/test/resources/jenkins/advancedqueue/test/NestedViewTest/jenkins.advancedqueue.PrioritySorterConfiguration.xml http://jenkins-ci.org/commit/priority-sorter-plugin/c4fd31bffee58f7222ed1c72a1d9ca4794f9c0af Log: Added support for ViewGroup in ViewBasedJobInclusion. This also fixes JENKINS-24962 as NestedView is based on ViewGroup
            Hide
            emsa23 Magnus Sandberg added a comment -

            Supported in 3.2

            Show
            emsa23 Magnus Sandberg added a comment - Supported in 3.2

              People

              • Assignee:
                emsa23 Magnus Sandberg
                Reporter:
                mabahj Markus
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: