Travis CI API Docs

Jobs

A list of jobs.

Currently this is nested within a build.

Attributes

NameTypeDescription
jobs[Job]List of jobs.

Collection Items

Each entry in the jobs array has the following attributes:

NameTypeDescription
idIntegerValue uniquely identifying the job.
allow_failureUnknownThe job's allow_failure.
numberStringIncremental number for a repository's builds.
stateStringCurrent state of the job.
started_atStringWhen the job started.
finished_atStringWhen the job finished.
buildBuildThe build the job is associated with.
queueStringWorker queue this job is/was scheduled on.
repositoryRepositoryGitHub user or organization the job belongs to.
commitCommitThe commit the job is associated with.
ownerOwnerGitHub user or organization the job belongs to.
stage[Stage]The stages of the job.
created_atStringWhen the job was created.
updated_atStringWhen the job was updated.
privateBooleanWhether or not the job is private.
restarted_atUnknownThe job's restarted_at.
restarted_byUnknownThe job's restarted_by.
vm_sizeUnknownThe job's vm_size.
configObjectThe job's config.
log_completeUnknownThe job's log_complete.

Actions

Find

This returns a list of jobs belonging to an individual build.

GET
/build/{build.id}/jobs
Template VariableTypeDescription
build.idIntegerValue uniquely identifying the build.
Query ParameterTypeDescription
include[String]List of attributes to eager load.

Example:GET /build/86601346/jobs

For Current User

This returns a list of jobs a current user has access to.

GET
/jobs
Query ParameterTypeDescription
activeUnknownAlias for job.active.
created_byUnknownAlias for job.created_by.
include[String]List of attributes to eager load.
job.activeUnknownDocumentation missing.
job.created_byUnknownDocumentation missing.
job.state[String]Filters jobs by current state of the job.
limitIntegerHow many jobs to include in the response. Used for pagination.
offsetIntegerHow many jobs to skip before the first entry in the response. Used for pagination.
sort_by[String]Attributes to sort jobs by. Used for pagination.
state[String]Alias for job.state.

Example:GET /jobs?limit=5

Sortable by: id, state, append :desc to any attribute to reverse order.
The default value is id:desc,state.