Queue

Queue module for jenkinsapi

class jenkinsapi.queue.Queue(baseurl: str, jenkins_obj: Jenkins)[source]

Bases: JenkinsBase

Class that represents the Jenkins queue

delete_item(queue_item: QueueItem)[source]
delete_item_by_id(item_id: str)[source]
get_jenkins_obj() Jenkins[source]
get_queue_item_url(item: str) str[source]
get_queue_items_for_job(job_name: str)[source]
iteritems() Iterator[Tuple[str, QueueItem]][source]
iterkeys() Iterator[str][source]
itervalues() Iterator[QueueItem][source]
keys() list[str][source]
values() list[QueueItem][source]
class jenkinsapi.queue.QueueItem(baseurl: str, jenkins_obj: Jenkins)[source]

Bases: JenkinsBase

An individual item in the queue

block_until_building(delay=5)[source]
block_until_complete(delay=5)[source]
get_age() float[source]

Return how long (in seconds) this item has been in the queue.

get_build() Build[source]
get_build_number() int[source]
get_causes() list[source]

Return the list of causes for this queue item being queued.

get_eta() float[source]

Return the estimated time (in seconds) until the build starts. Returns 0 if the item is already buildable or no estimate available.

get_jenkins_obj() Jenkins[source]
get_job() Job[source]

Return the job associated with this queue item

get_job_name() str[source]
get_parameters()[source]

returns parameters of queue item

property is_blocked: bool

True if this queue item is blocked from building.

property is_buildable: bool

True if this queue item is ready to be built.

is_queued() bool[source]

Return True if this queued item is queued.

is_running() bool[source]

Return True if this queued item is running.

property is_stuck: bool

True if this queue item is stuck (blocked for a long time).

property name
property queue_id
property why