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

Claim Report don't list all jobs when Default View is set in Jenkins

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • claim-plugin
    • None
    • Jenkins Claim Plugin version 2.1
      Jenkins ver. 1.480.2 (LTS)
      CentOS release 5.9

      Problem:
      Setting a "Default view" in Jenkins excludes all jobs not in this default view from the claim report.

      Steps to reproduce:
      1. Add a new view MyNewView in Jenkins. Include only some of the claimed failing jobs
      2. Go to http://jenkins:8080/configure
      3. Set your new view (MyNewView) as "Default view". Save.
      4. View the claim report (http://jenkins:8080/claims/). Only the claimed and failing jobs in MyNewView are listed, although the Claim Report should show all claimed and failing jobs.

          [JENKINS-16801] Claim Report don't list all jobs when Default View is set in Jenkins

          That it only shows the jobs for the "Default view" would also be a feature for some users.
          I am thinking about making it configurable which view the claim report shows it information from.

          For your use case you would have to configure a view that lists all jobs and choose that view as your "Claim view".

          Is that an acceptable solution for you?

          Christian Bremer added a comment - That it only shows the jobs for the "Default view" would also be a feature for some users. I am thinking about making it configurable which view the claim report shows it information from. For your use case you would have to configure a view that lists all jobs and choose that view as your "Claim view". Is that an acceptable solution for you?

          Markus added a comment -

          I agree. And your proposed solution is acceptable. (Although "acceptable" and "not acceptable" is a bit strong for a plugin I/we use for free...) There is already a view called "All" so I can simply select that view and then the plugin works as I expected.

          I've noticed that the "Wall Display" plugin uses another approach: It uses the view you have active when you click "Wall Display" in the menu to the left. Although I did not find that approach very intuitive at first, it could be that this is the recommended approach in the Jenkins UI.

          Markus added a comment - I agree. And your proposed solution is acceptable. (Although "acceptable" and "not acceptable" is a bit strong for a plugin I/we use for free...) There is already a view called "All" so I can simply select that view and then the plugin works as I expected. I've noticed that the "Wall Display" plugin uses another approach: It uses the view you have active when you click "Wall Display" in the menu to the left. Although I did not find that approach very intuitive at first, it could be that this is the recommended approach in the Jenkins UI.

          Code changed in jenkins
          User: ki82
          Path:
          src/main/java/hudson/plugins/claim/ClaimedBuildsReport.java
          src/test/java/hudson/plugins/claim/ClaimReportTest.java
          http://jenkins-ci.org/commit/claim-plugin/b86ff7bbf088820b64e1d2154d4758fdb7135b6c
          Log:
          Changed so that all jobs are visible in claim report. JENKINS-16801

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ki82 Path: src/main/java/hudson/plugins/claim/ClaimedBuildsReport.java src/test/java/hudson/plugins/claim/ClaimReportTest.java http://jenkins-ci.org/commit/claim-plugin/b86ff7bbf088820b64e1d2154d4758fdb7135b6c Log: Changed so that all jobs are visible in claim report. JENKINS-16801

          Fixed in 2.2

          Christian Bremer added a comment - Fixed in 2.2

            ki82 Christian Bremer
            mabahj Markus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: