Invoking a job in Jenkins via jenkinsapi returns a jenkinsapi.queue.QueueItem
object that represents queued build.
How can I get QueueItem
object of an already queued build, given queue_id
? I have tried:
j = Jenkins(...)
queue = j.get_queue()
queue_item = queue[queue_id]
But that is valid only for about 6-10 seconds, after that UnknownQueueItem
error is raised.