${jenkins url}/queue/api/json?tree=items[id] return list of
queueID. But when I searching Job with same queueID there is no Job with same queueID.
When I open Job from the queue and check his queueID, queueID is not the same like in the queue. queueID from job is smaller like queueID from queue.
Because this bug I cannot use searching function depending queueID(
${env.JENKINS_URL}api/xml?tree=jobs[jobs[allBuilds[queueId,url,number,fullDisplayName]]]&pretty=true&depth=3&xpath=/*/job/job/allBuild[queueId=${queueID}])
example:
One job is in queue
queue:
${env.JENKINS_URL}/queue/api/json?tree=items[id]
{"_class":"hudson.model.Queue","items":[{"_class":"hudson.model.Queue$BuildableItem","id":45342}]}
job:
"id" : "1268",
"keepLog" : false,
"number" : 1268,
"queueId" : 45341,
"result" : null,
"timestamp" : 1600345253078,
Queue ID is for mapping queued items to the builds they become once they leave the queue.
It is unclear from your description whether this is broken, or whether you're looking at a build (from an earlier queue entry) and a queue entry (that is new) at the same time.