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

Queue queueId not match with job queueId

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Jenkins 2.257
      Jenkins Master Linux
      Jenkins Slave Windows

      ${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,

            Unassigned Unassigned
            roman_dolinsky Roman Dolinsky
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: