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

API Listing of Artifacts is limited by UI settings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Similar Issues:

      Description

      The hudson.model.Run.ArtifactList.treeCutoff property does not merely affect the manner of listing artifacts on the Job's HTML page, but also limits the number of items retrieved by the API. You can confirm this by polling <hudson>/job/<jobName>/<buildNumber>/api/xml?xpath=//artifact with different settings for hudson.model.Run.ArtifactList.treeCutoff, and as long as you actually have more artifacts than the treeCutoff, the number of items found will always be only one more than the value of treeCutoff.

      The UI configuration parameter should not affect the API results in this manner.

        Attachments

          Activity

          Hide
          mindless Alan Harder added a comment -

          heh, I noticed this when I added the tree view (before that the remote API cutoff after 17 artifacts!), but didn't fix it :-/ Guess I figured 40 artifacts would be enough most of the time..

          Show
          mindless Alan Harder added a comment - heh, I noticed this when I added the tree view (before that the remote API cutoff after 17 artifacts!), but didn't fix it :-/ Guess I figured 40 artifacts would be enough most of the time..
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Run.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=26036
          Log:
          [FIXED JENKINS-5247] The hudson.model.Run.ArtifactList.treeCutoff property should not limit the number of artifacts shown by the API.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/main/core/src/main/java/hudson/model/Run.java http://fisheye4.cenqua.com/changelog/hudson/?cs=26036 Log: [FIXED JENKINS-5247] The hudson.model.Run.ArtifactList.treeCutoff property should not limit the number of artifacts shown by the API.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=26037
          Log:
          Add fix for JENKINS-5247. The hudson.model.Run.ArtifactList.treeCutoff property should not
          limit the number of artifacts shown by the API.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=26037 Log: Add fix for JENKINS-5247 . The hudson.model.Run.ArtifactList.treeCutoff property should not limit the number of artifacts shown by the API.
          Hide
          ashlux ashlux added a comment -

          Fix committed for 1.342.

          Show
          ashlux ashlux added a comment - Fix committed for 1.342.

            People

            Assignee:
            ashlux ashlux
            Reporter:
            emmulator emmulator
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: