Previous topic

Introduction to AutoJenkins

This Page

autojenkins.jobs

class autojenkins.jobs.Jenkins(base_url)

Main class to interact with a Jenkins server.

all_jobs()

Get a list of tuples with (name, color) of all jobs in the server.

Color is blue, yellow or red depending on build results (SUCCESS, UNSTABLE or FAILED).

build(jobname)

Trigger Jenkins to build a job.

copy(jobname, copy_from='template')

Copy a job from another one (by default from one called template).

create(jobname, config_file, **context)

Create a job from a configuration file.

create_copy(jobname, template_job, enable=True, **context)

Create a job from a template job.

delete(jobname)

Delete a job.

get_config_xml(jobname)

Get the config.xml file that contains the job definition.

job_info(jobname)

Get all information for a job as a Python object (dicts & lists).

last_result(jobname)

Obtain results from last execution.

last_success(jobname)

Return information about the last successful build.