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

Build Filter (Wrapper) column not properly showing results for Parameterized builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      linux, jenkins 1.550, view job filters 1.26
    • Similar Issues:

      Description

      All test jobs are called with the BRANCH parameter.

      I create a view as follows:

      • New List View
      • Under Job Filters i have nothing checked.
      • I select "Parameterized job filter" from the Add Job Filter dropdown.
      • Under Name: I enter "BRANCH"
      • Under Value: I enter the exact parameter I seek to make this view for. "main" for example (with no quotes of course)
      • Match Type: I select "Include Matched"
      • Under columns, I select Build Filter (Wrapper) Column from the add columns
      • I select "Number of Builds"
      • Repeat for Status and Weather
      • Delete the Number of Builds, Status, and Weather, (last successful, etc..) default columns.
      • Save the view.

      Now when I look at the view, I see the all of the test jobs that have been run with the BRANCH parameter "main".

      The bug is that the counts for success/failure/etc..., weather, and status, are not filtered to include only jobs with the parameter I specified. Instead they show the values for all jobs no matter what the parameter.

      It is as if the Build Filter (Wrapper) Column is doing nothing.

      I've tried several other permutations of the filter:
      include all, exclude not matching param.
      include matching param, exclude not matching param

      None work.

        Attachments

        1. BuildHistory.JPG
          BuildHistory.JPG
          14 kB
        2. Job.JPG
          Job.JPG
          64 kB
        3. Param.JPG
          Param.JPG
          19 kB
        4. result.JPG
          result.JPG
          17 kB

          Issue Links

            Activity

            Hide
            hushp1pt Tony Wallace added a comment - - edited

            If interested, this is what I am trying to accomplish. I do not wish to maintain multiple, mostly redundant projects where the only difference is GERRIT_BRANCH or some other build Parameter value. However, I do wish to provide users with a convenient way to visually review recent build results for just the projects and GERRIT_BRANCHes of interest to them, including the values of the important build Parameters all on the same page, without being overwhelmed. To that end, I have already configured a customized Build Description for all projects. This build Description appears in the build History that appears on the RHS of any individual project page.

            Now I am trying to make Jenkins display a View showing the build History for multiple projects in one page, where (in order of highest-to-lowest priority),

            (a) The View's Build History only includes builds which satisfy a Parameterized builds filter - e.g., the value of GERRIT_BRANCH in that build matched "RB12.34". If there was a filter based on regex match against Build Description, I could use that instead of Parameterized builds filter.

            (b) As above, but you can add more configurable columns to the View's Build History, similar to the way you can add columns to the main view. Especially, Build Description.

            (c) The main view (Project list with columns) should only include projects for which at least one completed build satisfied the Parameterized builds filter, e.g. GERRIT_BRANCH matched "RB12.34". More importantly, for each project included in the main view, the Build Filter (wrapper) column would display accurate values for Status, Weather, Build Description, Build parameters, etc, based on the last completed build which satisfied the Parameterized builds filter.

            (d) As above, but the Build Filter (wrapper) column would also display accurate values for Last success, Last failure, etc, based on the subset of builds which satisfied the Parameterized builds filter.

            Thanks for reading.

            Show
            hushp1pt Tony Wallace added a comment - - edited If interested, this is what I am trying to accomplish. I do not wish to maintain multiple, mostly redundant projects where the only difference is GERRIT_BRANCH or some other build Parameter value. However, I do wish to provide users with a convenient way to visually review recent build results for just the projects and GERRIT_BRANCHes of interest to them, including the values of the important build Parameters all on the same page, without being overwhelmed. To that end, I have already configured a customized Build Description for all projects. This build Description appears in the build History that appears on the RHS of any individual project page. Now I am trying to make Jenkins display a View showing the build History for multiple projects in one page, where (in order of highest-to-lowest priority), (a) The View's Build History only includes builds which satisfy a Parameterized builds filter - e.g., the value of GERRIT_BRANCH in that build matched "RB12.34". If there was a filter based on regex match against Build Description, I could use that instead of Parameterized builds filter. (b) As above, but you can add more configurable columns to the View's Build History, similar to the way you can add columns to the main view. Especially, Build Description. (c) The main view (Project list with columns) should only include projects for which at least one completed build satisfied the Parameterized builds filter, e.g. GERRIT_BRANCH matched "RB12.34". More importantly, for each project included in the main view, the Build Filter (wrapper) column would display accurate values for Status, Weather, Build Description, Build parameters, etc, based on the last completed build which satisfied the Parameterized builds filter. (d) As above, but the Build Filter (wrapper) column would also display accurate values for Last success, Last failure, etc, based on the subset of builds which satisfied the Parameterized builds filter. Thanks for reading.
            Hide
            jglick Jesse Glick added a comment -

            BuildFilterColumn$JobWrapper._getRuns is clearly wrong. It should not be using RunMap, which is only expected to be implemented by Jenkins core. At any rate, it looks like an unrelated issue; better to reclose this one as fixed and file separately (link as needed).

            Show
            jglick Jesse Glick added a comment - BuildFilterColumn$JobWrapper._getRuns is clearly wrong. It should not be using RunMap , which is only expected to be implemented by Jenkins core. At any rate, it looks like an unrelated issue; better to reclose this one as fixed and file separately (link as needed).
            Hide
            hushp1pt Tony Wallace added a comment - - edited

            Opened new issue, JENKINS-30182, as suggested.

            Show
            hushp1pt Tony Wallace added a comment - - edited Opened new issue, JENKINS-30182 , as suggested.
            Hide
            jglick Jesse Glick added a comment -

            Thanks; reclosing this one. (Again I merely merged a fix someone else made, and I do not know anything more about the bug than that.)

            Show
            jglick Jesse Glick added a comment - Thanks; reclosing this one. (Again I merely merged a fix someone else made, and I do not know anything more about the bug than that.)
            Hide
            veniamin veniamin medvedev added a comment - - edited

            Jenkins 2.7.4
            view-job-filters 1.27

            On the last screenshot I expected the "Weather" is cloudy. Since most of the "DEV" runs are failed. But it's not.




            Show
            veniamin veniamin medvedev added a comment - - edited Jenkins 2.7.4 view-job-filters 1.27 On the last screenshot I expected the "Weather" is cloudy. Since most of the "DEV" runs are failed. But it's not.

              People

              • Assignee:
                jacob_robertson Jacob Robertson
                Reporter:
                growflet Patricia Wright
              • Votes:
                8 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: