-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
We are running Jenkins ver 1.488, consider the following scenario:
- You've started build number 705 for a job named get_infinidat_logs
- While the job is running, you query the JOB APIs (here we look at the JOSN API for example).
- The build currently running is not in the JSON response (see the output below).
- This happens on all the APIs.
- This was working as expected in version 1.484
http://ci.infinidat.com/job/get_infinidat_logs/api/json?pretty=true { actions: [], description: "Job to collect logs from infiniboxes", displayName: "get_infinidat_logs", displayNameOrNull: null, name: "get_infinidat_logs", url: "http://ci.infinidat.com/job/get_infinidat_logs/", buildable: true, builds: [ { number: 704, url: "http://ci.infinidat.com/job/get_infinidat_logs/704/" }, { number: 703, url: "http://ci.infinidat.com/job/get_infinidat_logs/703/" }, { number: 702, url: "http://ci.infinidat.com/job/get_infinidat_logs/702/" }, { number: 701, url: "http://ci.infinidat.com/job/get_infinidat_logs/701/" }, { number: 700, url: "http://ci.infinidat.com/job/get_infinidat_logs/700/" }, { number: 699, url: "http://ci.infinidat.com/job/get_infinidat_logs/699/" }, { number: 698, url: "http://ci.infinidat.com/job/get_infinidat_logs/698/" }, { number: 697, url: "http://ci.infinidat.com/job/get_infinidat_logs/697/" }, { number: 696, url: "http://ci.infinidat.com/job/get_infinidat_logs/696/" }, { number: 695, url: "http://ci.infinidat.com/job/get_infinidat_logs/695/" }, { number: 694, url: "http://ci.infinidat.com/job/get_infinidat_logs/694/" }, { number: 693, url: "http://ci.infinidat.com/job/get_infinidat_logs/693/" }, { number: 692, url: "http://ci.infinidat.com/job/get_infinidat_logs/692/" }, { number: 691, url: "http://ci.infinidat.com/job/get_infinidat_logs/691/" }, { number: 690, url: "http://ci.infinidat.com/job/get_infinidat_logs/690/" }, { number: 689, url: "http://ci.infinidat.com/job/get_infinidat_logs/689/" }, { number: 688, url: "http://ci.infinidat.com/job/get_infinidat_logs/688/" }, { number: 687, url: "http://ci.infinidat.com/job/get_infinidat_logs/687/" }, { number: 686, url: "http://ci.infinidat.com/job/get_infinidat_logs/686/" }, { number: 685, url: "http://ci.infinidat.com/job/get_infinidat_logs/685/" }, { number: 684, url: "http://ci.infinidat.com/job/get_infinidat_logs/684/" }, { number: 683, url: "http://ci.infinidat.com/job/get_infinidat_logs/683/" }, { number: 682, url: "http://ci.infinidat.com/job/get_infinidat_logs/682/" }, { number: 681, url: "http://ci.infinidat.com/job/get_infinidat_logs/681/" }, { number: 680, url: "http://ci.infinidat.com/job/get_infinidat_logs/680/" }, { number: 679, url: "http://ci.infinidat.com/job/get_infinidat_logs/679/" }, { number: 678, url: "http://ci.infinidat.com/job/get_infinidat_logs/678/" }, { number: 677, url: "http://ci.infinidat.com/job/get_infinidat_logs/677/" }, { number: 676, url: "http://ci.infinidat.com/job/get_infinidat_logs/676/" }, { number: 675, url: "http://ci.infinidat.com/job/get_infinidat_logs/675/" }, { number: 674, url: "http://ci.infinidat.com/job/get_infinidat_logs/674/" }, { number: 673, url: "http://ci.infinidat.com/job/get_infinidat_logs/673/" }, { number: 672, url: "http://ci.infinidat.com/job/get_infinidat_logs/672/" }, { number: 671, url: "http://ci.infinidat.com/job/get_infinidat_logs/671/" }, { number: 670, url: "http://ci.infinidat.com/job/get_infinidat_logs/670/" }, { number: 669, url: "http://ci.infinidat.com/job/get_infinidat_logs/669/" }, { number: 668, url: "http://ci.infinidat.com/job/get_infinidat_logs/668/" }, { number: 667, url: "http://ci.infinidat.com/job/get_infinidat_logs/667/" }, { number: 666, url: "http://ci.infinidat.com/job/get_infinidat_logs/666/" }, { number: 665, url: "http://ci.infinidat.com/job/get_infinidat_logs/665/" }, { number: 664, url: "http://ci.infinidat.com/job/get_infinidat_logs/664/" }, { number: 663, url: "http://ci.infinidat.com/job/get_infinidat_logs/663/" }, { number: 662, url: "http://ci.infinidat.com/job/get_infinidat_logs/662/" }, { number: 661, url: "http://ci.infinidat.com/job/get_infinidat_logs/661/" } ], color: "blue_anime", firstBuild: { number: 501, url: "http://ci.infinidat.com/job/get_infinidat_logs/501/" }, healthReport: [ { description: "Build stability: No recent builds failed.", iconUrl: "health-80plus.png", score: 100 } ], inQueue: false, keepDependencies: false, lastBuild: { number: 705, url: "http://ci.infinidat.com/job/get_infinidat_logs/705/" }, lastCompletedBuild: { number: 704, url: "http://ci.infinidat.com/job/get_infinidat_logs/704/" }, lastFailedBuild: { number: 702, url: "http://ci.infinidat.com/job/get_infinidat_logs/702/" }, lastStableBuild: { number: 704, url: "http://ci.infinidat.com/job/get_infinidat_logs/704/" }, lastSuccessfulBuild: { number: 704, url: "http://ci.infinidat.com/job/get_infinidat_logs/704/" }, lastUnstableBuild: null, lastUnsuccessfulBuild: { number: 703, url: "http://ci.infinidat.com/job/get_infinidat_logs/703/" }, nextBuildNumber: 706, property: [ { }, { parameterDefinitions: [ { defaultParameterValue: { name: "jira_ticket", value: "None" }, description: "Systems to collect logs from. If not provided, try to get systems from jira ticket", name: "jira_ticket", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "systems", value: "None" }, description: "", name: "systems", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "servers", value: "None" }, description: "Comma-seperated list (e.g. -i2,3) of servers to collect logs from, defaults to all", name: "servers", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "folder_list", value: "None" }, description: "Copy files from folders provided. Overrides internal list.", name: "folder_list", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "binaries_list", value: "None" }, description: "Recursively copy directories provided. Overrides internal list. ", name: "binaries_list", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "binaries", value: true }, description: "Check to collect binary directories which may be shared", name: "binaries", type: "BooleanParameterDefinition" }, { defaultParameterValue: { name: "delta", value: "7200" }, description: "", name: "delta", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "timestamp", value: "" }, description: "", name: "timestamp", type: "StringParameterDefinition" }, { defaultParameterValue: { name: "EMAIL", value: "" }, description: "User which ran the job, to send email to in case of failure", name: "EMAIL", type: "StringParameterDefinition" } ] } ], queueItem: null, concurrentBuild: true, downstreamProjects: [ ], scm: { }, upstreamProjects: [ ] } builds+-View source
- duplicates
-
JENKINS-15583 "building" builds (running builds) do not show up anymore in the list of builds of a job (json API)
- Resolved
- is related to
-
JENKINS-15704 Incomplete list of builds when I go to JobName/api/json
- Resolved