Skip to content
For LLMsView as Markdown·

Jenkins

Manage jobs, trigger builds, and monitor queues with the Jenkins API.

DetailValue
CategoryCI/CD
Base URLhttps://jenkins.example.com
AuthenticationBearer Token
Endpoints8
Connector keyjenkins

Using Jenkins in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Jenkins from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /api/jsonGet Jenkins info
GET /job/{name}/api/jsonGet job details
POST /job/{name}/buildTrigger a build
POST /job/{name}/buildWithParametersTrigger parameterized build
GET /job/{name}/{number}/api/jsonGet build details
GET /job/{name}/{number}/consoleTextGet build console output
POST /job/{name}/{number}/stopStop a build
GET /queue/api/jsonGet build queue

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /api/json

Get Jenkins info

DetailValue
Operation IDcicd.getJenkinsInfo
MethodGET
Path/api/json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getJenkinsInfo.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

GET /job/{name}/api/json

Get job details

DetailValue
Operation IDcicd.getJob
MethodGET
Path/job/{name}/api/json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getJob.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

POST /job/{name}/build

Trigger a build

DetailValue
Operation IDcicd.buildJob
MethodPOST
Path/job/{name}/build

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.buildJob.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

POST /job/{name}/buildWithParameters

Trigger parameterized build

DetailValue
Operation IDcicd.buildJobWithParameters
MethodPOST
Path/job/{name}/buildWithParameters

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.buildJobWithParameters.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

GET /job/{name}/{number}/api/json

Get build details

DetailValue
Operation IDcicd.getBuild
MethodGET
Path/job/{name}/{number}/api/json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getBuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

GET /job/{name}/{number}/consoleText

Get build console output

DetailValue
Operation IDcicd.getBuildConsoleOutput
MethodGET
Path/job/{name}/{number}/consoleText

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getBuildConsoleOutput.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

POST /job/{name}/{number}/stop

Stop a build

DetailValue
Operation IDcicd.stopBuild
MethodPOST
Path/job/{name}/{number}/stop

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.stopBuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.

GET /queue/api/json

Get build queue

DetailValue
Operation IDcicd.getQueue
MethodGET
Path/queue/api/json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Jenkins connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getQueue.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Jenkins API reference.