Exectors and Executor

Executors

This module implements the Executors class, which is intended to be a container-like interface for all of the executors defined on a single Jenkins node.

class jenkinsapi.executors.Executors(baseurl: str, nodename: str, jenkins: Jenkins)[source]

Bases: JenkinsBase

This class provides a container-like API which gives access to all executors on a Jenkins node.

Returns a list of Executor Objects.

get_jenkins_obj() Jenkins[source]

Executor

Module for jenkinsapi Executer class

class jenkinsapi.executor.Executor(baseurl: str, nodename: str, jenkins_obj: Jenkins, number: int)[source]

Bases: JenkinsBase

Class to hold information on nodes that are attached as slaves to the master jenkins instance

get_current_executable() str[source]

Returns the current Queue.Task this executor is running.

get_jenkins_obj() Jenkins[source]
get_number() int[source]

Get Executor number.

get_progress() str[source]

Returns percentage

is_idle() bool[source]

Returns Boolean: whether Executor is idle or not.

likely_stuck() bool[source]

Returns Boolean: whether Executor is likely stuck or not.