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

List view section: Job Statuses Filter on disabled doesn't work for pipeline jobs

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Since JENKINS-27299 has been resolved, pipeline jobs can be disabled. But unfortunately filtering on disabled pipeline jobs with the Job Statuses Filter in a List View Section of a Sectioned View does not work, i.e. only non-pipeline jobs are shown.

      Remarks:

      • I tried it only with a normal pipeline job, not with a multi-pipeline, since currently I don't use those. I didn' try the other job statuses either.
      • Filtering on Stable and Unstable seem to work, didn't try Failed and Aborted.

        Attachments

          Activity

          Hide
          macdrega Joerg Schwaerzler added a comment -

          Great, thanks!

          Works like a charm

          Show
          macdrega Joerg Schwaerzler added a comment - Great, thanks! Works like a charm
          Hide
          macdrega Joerg Schwaerzler added a comment -

          Looks like the pull request from Moritz Knolle came little bit late so it needs a merge first. As Moritz Knolle currently won't have time to do the merge I discussed with him and will take over the PR and do the merge.

          Show
          macdrega Joerg Schwaerzler added a comment - Looks like the pull request from Moritz Knolle came little bit late so it needs a merge first. As Moritz Knolle currently won't have time to do the merge I discussed with him and will take over the PR and do the merge.
          Hide
          macdrega Joerg Schwaerzler added a comment -

          Timothy Bingaman, Sven Schoenung: We're still preparing the PR which initially was created by Moritz Knolle - we're almost done. Wonder whether so else is working on that topic as well. Please let us know.

          Show
          macdrega Joerg Schwaerzler added a comment - Timothy Bingaman , Sven Schoenung : We're still preparing the PR which initially was created by Moritz Knolle - we're almost done. Wonder whether so else is working on that topic as well. Please let us know.
          Hide
          svenschoenung Sven Schoenung added a comment -

          As chance would have it I actually looked at this issue and the pull request just yesterday.

          The actual code fix is pretty straightforward. It's the minimum required Jenkins version that makes me hesitate.

          When I fixed the broken build I made sure not to increase the minimum required Jenkins version by too much. It's 1.625.3 right now and it seems fixing this will increase that number to 2.62. There's quite a few versions in between those two where people are using this plugin. Right now it seems like they are not updating the plugin anyway, but it might to too early to tell.

          There's always the option of fixing this through reflection without increasing the required Jenkins version (as was done here), but that's complicated, ugly, hard to test, etc...

          Show
          svenschoenung Sven Schoenung added a comment - As chance would have it I actually looked at this issue and the pull request just yesterday. The actual code fix is pretty straightforward. It's the minimum required Jenkins version that makes me hesitate. When I fixed the broken build I made sure not to increase the minimum required Jenkins version by too much. It's 1.625.3 right now and it seems fixing this will increase that number to 2.62. There's quite a few versions in between those two where people are using this plugin . Right now it seems like they are not updating the plugin anyway, but it might to too early to tell. There's always the option of fixing this through reflection without increasing the required Jenkins version (as was done here ), but that's complicated, ugly, hard to test, etc...
          Show
          datenzauberer daten zauberer added a comment - Sven Schoenung Please have a look at https://github.com/jenkinsci/view-job-filters-plugin/pull/12

            People

            • Assignee:
              tbingaman Timothy Bingaman
              Reporter:
              wolfgangk Wolfgang Kiendl
            • Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: