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

"building" builds (running builds) do not show up anymore in the list of builds of a job (json API)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If you request the json representation of a job with running builds, the running builds are not returned in the list of builds in the output.

      This is important for us because we make extensive use of the jenkins API in custom information radiators. Because of this change these are unable to display any running build (because we cannot get running builds from the jenkins API anymore).

      example: there is a running build on the jenkins CI at the moment:
      build 30 of the infra_backend-merge-all-repo job. If you request the json representation of the job:

      https://ci.jenkins-ci.org/job/infra_backend-merge-all-repo/api/json?pretty=true

      build 30 is not in the "builds" list

        Attachments

          Issue Links

            Activity

            Hide
            pedroreis pedro reis added a comment -

            @janick In python I don't see any "allBuilds".

            There is only: builds, firstBuild, lastBuild, lastCompletedBuild, lastFailedBuild, lastStableBuild, lastSuccessfulBuild, lastUnstableBuild, lastUnsuccessfulBuild,

            Show
            pedroreis pedro reis added a comment - @janick In python I don't see any "allBuilds". There is only: builds, firstBuild, lastBuild, lastCompletedBuild, lastFailedBuild, lastStableBuild, lastSuccessfulBuild, lastUnstableBuild, lastUnsuccessfulBuild,
            Hide
            janickr janick reynders added a comment -

            yes it's a hidden property: it will be returned if you ask for it explicitly (using the "tree" query parameter: see "Controlling the amount of data you fetch")

            Show
            janickr janick reynders added a comment - yes it's a hidden property: it will be returned if you ask for it explicitly (using the "tree" query parameter: see "Controlling the amount of data you fetch")
            Hide
            jglick Jesse Glick added a comment -

            This is still an apparent regression and needs to be fixed, not worked around in clients.

            Show
            jglick Jesse Glick added a comment - This is still an apparent regression and needs to be fixed, not worked around in clients.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            changelog.html
            core/src/main/java/hudson/model/Job.java
            core/src/main/java/hudson/util/RunList.java
            http://jenkins-ci.org/commit/jenkins/fe9f676028773df181f0b9ec823b3cdd08d5cf3d
            Log:
            [FIXED JENKINS-15583]

            Report 100 recent builds in the JSON API, including in-progress builds.

            Not reporting all the builds since this would nullify the lazy loading
            effect. Will introduce a pagenation API that supports retrieval.


            You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
            To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
            For more options, visit https://groups.google.com/groups/opt_out.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/Job.java core/src/main/java/hudson/util/RunList.java http://jenkins-ci.org/commit/jenkins/fe9f676028773df181f0b9ec823b3cdd08d5cf3d Log: [FIXED JENKINS-15583] Report 100 recent builds in the JSON API, including in-progress builds. Not reporting all the builds since this would nullify the lazy loading effect. Will introduce a pagenation API that supports retrieval. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2368
            [FIXED JENKINS-15583] (Revision fe9f676028773df181f0b9ec823b3cdd08d5cf3d)

            Result = UNSTABLE
            kohsuke : fe9f676028773df181f0b9ec823b3cdd08d5cf3d
            Files :

            • core/src/main/java/hudson/util/RunList.java
            • changelog.html
            • core/src/main/java/hudson/model/Job.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2368 [FIXED JENKINS-15583] (Revision fe9f676028773df181f0b9ec823b3cdd08d5cf3d) Result = UNSTABLE kohsuke : fe9f676028773df181f0b9ec823b3cdd08d5cf3d Files : core/src/main/java/hudson/util/RunList.java changelog.html core/src/main/java/hudson/model/Job.java

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              janickr janick reynders
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: