autojenkins.jobs

class autojenkins.jobs.Jenkins(base_url, auth=None)

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.

disable(jobname)

Trigger Jenkins to disable a job.

enable(jobname)

Trigger Jenkins to enable 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).

job_url(jobname)

Get the human-browseable URL for a job.

last_build_info(jobname)

Get information for last build of a job.

last_build_report(jobname)

Get full report of last build.

last_result(jobname)

Obtain results from last execution.

last_success(jobname)

Return information about the last successful build.

transfer(jobname, to_server)

Copy a job to another server.

Project Versions

Previous topic

Introduction to AutoJenkins

This Page