CloudBees Job API
The Job API from CloudBees — 7 operation(s) for job.
Operations 8
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
The Job API from CloudBees — 7 operation(s) for job.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/cloudbees:cloudbees-job-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: CloudBees CI REST API (Jenkins-compatible) Job API
description: 'CloudBees CI exposes the Jenkins remote-access REST API for inspecting and
controlling jobs, builds, queues, and computers. Append `/api/json`,
`/api/xml`, or `/api/python` to any URL on the controller to retrieve
machine-readable metadata. Use the `tree` query parameter to limit the
payload (recommended for performance). Authenticate with an API token via
HTTP Basic Auth.'
version: 1.0.0
servers:
- url: https://example.cloudbees.com
description: CloudBees CI controller (replace with your JENKINS_URL)
security:
- basicAuth: []
tags:
- name: Job
paths:
/job/{name}/api/json:
get:
summary: Get job metadata
parameters:
- name: name
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/Tree'
- $ref: '#/components/parameters/Depth'
responses:
'200':
description: Job metadata
content:
application/json:
schema:
$ref: '#/components/schemas/Job'
tags:
- Job
operationId: getJobByNameApiJson
x-operation-id-source: derived
/job/{name}/build:
post:
summary: Trigger a build (no parameters)
parameters:
- name: name
in: path
required: true
schema:
type: string
- name: token
in: query
schema:
type: string
responses:
'201':
description: Build queued
'400':
description: Bad request (job requires parameters)
tags:
- Job
operationId: postJobByNameBuild
x-operation-id-source: derived
/job/{name}/buildWithParameters:
post:
summary: Trigger a parameterized build
parameters:
- name: name
in: path
required: true
schema:
type: string
- name: token
in: query
schema:
type: string
requestBody:
required: false
content:
application/x-www-form-urlencoded:
schema:
type: object
additionalProperties:
type: string
responses:
'201':
description: Build queued
tags:
- Job
operationId: postJobByNameBuildWithParameters
x-operation-id-source: derived
/job/{name}/{number}/api/json:
get:
summary: Get a specific build
parameters:
- name: name
in: path
required: true
schema:
type: string
- name: number
in: path
required: true
schema:
type: integer
- $ref: '#/components/parameters/Tree'
responses:
'200':
description: Build metadata
content:
application/json:
schema:
$ref: '#/components/schemas/Build'
tags:
- Job
operationId: getJobByNameByNumberApiJson
x-operation-id-source: derived
/job/{name}/lastSuccessfulBuild/api/json:
get:
summary: Get last successful build of a job
parameters:
- name: name
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/Tree'
responses:
'200':
description: Build metadata
content:
application/json:
schema:
$ref: '#/components/schemas/Build'
tags:
- Job
operationId: getJobByNameLastSuccessfulBuildApiJson
x-operation-id-source: derived
/job/{name}/config.xml:
parameters:
- name: name
in: path
required: true
schema:
type: string
get:
summary: Get job configuration XML
responses:
'200':
description: config.xml
content:
application/xml:
schema:
type: string
tags:
- Job
operationId: getJobByNameConfigXml
x-operation-id-source: derived
post:
summary: Update job configuration XML
requestBody:
required: true
content:
application/xml:
schema:
type: string
responses:
'200':
description: Updated
tags:
- Job
operationId: postJobByNameConfigXml
x-operation-id-source: derived
/job/{name}/doDelete:
post:
summary: Delete job
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
'200':
description: Deleted
tags:
- Job
operationId: postJobByNameDoDelete
x-operation-id-source: derived
components:
parameters:
Depth:
name: depth
in: query
schema:
type: integer
default: 0
Tree:
name: tree
in: query
description: 'Tree filter for selecting and trimming response fields.
Example: `jobs[name,url,color]`.
'
schema:
type: string
schemas:
Build:
type: object
properties:
_class:
type: string
number:
type: integer
result:
type: string
duration:
type: integer
timestamp:
type: integer
url:
type: string
BuildSummary:
type: object
properties:
number:
type: integer
url:
type: string
Job:
type: object
properties:
_class:
type: string
name:
type: string
url:
type: string
builds:
type: array
items:
$ref: '#/components/schemas/BuildSummary'
lastBuild:
$ref: '#/components/schemas/BuildSummary'
lastSuccessfulBuild:
$ref: '#/components/schemas/BuildSummary'
buildable:
type: boolean
securitySchemes:
basicAuth:
type: http
scheme: basic
description: Jenkins username + API token