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

API Listing of Artifacts is limited by UI settings

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • None

      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.

          [JENKINS-5247] API Listing of Artifacts is limited by UI settings

          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..

          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..

          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.

          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.

          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.

          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.

          ashlux added a comment -

          Fix committed for 1.342.

          ashlux added a comment - Fix committed for 1.342.

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

              Created:
              Updated:
              Resolved: