Jenkins Spoke

concept australia Updated Mar 12, 2026 6 min read jenkins-v1-spoke.md
Raw file servicenow.com

Manage builds, users, settings, and jobs on the Jenkins server. Retrieve Jenkins data to use in a flow.

Request apps on the Store

Visit the ServiceNow Store to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

Integration Hub subscription

This spoke requires an Integration Hub subscription. For more information, see Legal schedules - IntegrationHub overview.

Supported versions

All versions between 1.651.1 and 2.150.3.

Spoke version

Jenkins spoke v2.3.1 is the latest version. For version history of the spoke, see Jenkins spoke release notes.

Spoke actions

The Jenkins spoke provides actions to automate the Jenkins tasks when events occur in the ServiceNow instance. Available actions include:

Category

Action

Description

Build Management

Delete Build

Deletes a build from a Jenkins server job.

Get All Builds

Retrieves all the builds for a given Jenkins server job. Returns the URL, build number, and class of each build.

Get Build History

Retrieves a range of build history for a given job from the Jenkins server.

Get Build Information

Retrieves the build timestamp, build status, and complete build information of a given job from the Jenkins server.

Get Build Number

Retrieves the build number for a Jenkins server job based on a pre-defined build filter, such as the last successful build.

Perform a Build

Executes a job on the Jenkins server.

Configuration Management

Create Jenkins Credentials

Creates the Jenkins server credentials.

Create Node

Creates a node that you can launch with the Java Web Start software. A node is a machine that is part of the Jenkins environment and capable of executing jobs.

Delete Node

Deletes a node from the Jenkins server.

Get CSRF Token

Retrieves a CSRF token if your Jenkins server has the "Prevent Cross Site Request Forgery exploits" option enabled.

Note: If your Jenkins server has CSRF protection enabled, use this action to retrieve a token for use by the rest of the flow. The action outputs the token as a data pill for use in other actions in the flow.

Get Version

Retrieves the Jenkins server version.

Restart Jenkins

Restarts the Jenkins server.

Test Connection

Tests the connection to the Jenkins server.

Job Management

Copy Job

Creates a job by copying an existing Jenkins server job.

Create Folder

Creates a Jenkins server folder to organize the jobs.

Create Job

Creates a Jenkins server job from an XML file.

Delete Folder

Deletes an existing Jenkins server folder.

Delete Job

Deletes a Jenkins server job.

Get All Jobs From Folder

Retrieves all the jobs from a given Jenkins server folder. Returns the class and name of each job up to the specified number of levels.

Get Build timestamp

Retrieves the build timestamp of a specified Jenkins server job.

Get Console Output

Retrieves the build console output of a Jenkins server job.

Get Job Configuration

Retrieves the XML configuration for a Jenkins server job.

Reload Job

Reloads a Jenkins server job.

Rename Job

Renames a Jenkins server job.

User Management

Create User

Creates a Jenkins server user.

Delete User

Deletes an existing Jenkins server user.

View Management

Add Job To View

Adds a job to the Jenkins server view. Views are containers to organize jobs. As a Jenkins instance grows, you can create views for appropriate groups and categories. For example, you may want to create a Build view, which only displays the build-specific jobs.

Create View

Creates a Jenkins server view.

Delete View

Deletes a Jenkins server view.

Get All Jobs From View

Retrieves all jobs from a Jenkins server view. Returns the class and the name of the top-level jobs.

Remove Job From View

Removes a job from a Jenkins server view.

## Available AI agents

Install Now Assist for Integration Hub and start using the available AI agents. For more information, see Now Assist for Integration Hub.

This spoke provides standalone AI agents that mimic human-like intelligence to perform tasks in your ServiceNow instance.

  • In the ServiceNow agentic system, you can create an agentic workflow that comprises of a set of large language model (LLM) instructions along with one or more standalone AI agents to execute an objective. See Create an agentic workflow for information about adding AI agents to create agentic workflows as per your requirement and provide the required trigger.

    You can also search for other available AI agents and add them to your agentic workflow. See Find AI agents for more information.

  • You can create a clone of the required spoke AI agent and customize it as per your requirement. See Duplicate an AI agent for more information about creating a clone.

  • See AI Agent Studio (legacy) for information about AI agents.

Available AI agents include:

AI Agent

Description

Jenkins View Management AI Agents

Manages job records and retrieves details of all jobs from a Jenkins server view.

Jenkins Job Management AI Agents

Manages jobs and retrieves details of all the jobs from a given Jenkins server folder.

Jenkins Configuration Management AI Agents

Manages a node from the Jenkins server.Retrieves a CSRF token if your Jenkins server has the "Prevent Cross Site Request Forgery exploits" option enabled.

Jenkins User Management AI Agents

Manages the Jenkins server user recor.ds

Jenkins Build Management AI Agents

Manages a build from a Jenkins server job and retrieves the required build details.

There might be AI agents installed on your instance that are not used in agentic workflows. To learn how to see all agents that are available to you, see [Find AI agents](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/intelligent-experiences/find-ai-agents.md).

Note: Ensure that the user running an AI agent has the required roles and permissions to access data or perform operations on data in the table that is associated with the AI agent.

Support for CRSF tokens

If your Jenkins server has the "Prevent Cross Site Request Forgery exploits" option enabled, certain actions require a unique token. Use the Get CSRF Token action to retrieve a token for use by the rest of the flow. The action outputs the token as a data pill for use in other actions in the flow.

Connection and credential requirements

Integration Hub uses aliases to manage connection and credential information, and OAuth credentials. Using an alias eliminates the need to configure multiple credentials and connection information profiles when using multiple environments. If the connection or credential information changes, you don't need to update any actions that use the connection.

This spoke uses the Jenkins Connection & Credential Alias record to authorize actions. To use the spoke connection alias, create an associated Connection record and an associated Credential record.

For information about setting up the spoke, see Set up Jenkins spoke.

MID Server requirements

These actions use the REST calls, which must run on a MID Server. Use the connection record associated with the Jenkins alias to configure where actions run as well as set MID Server selection attributes. For more information, see MID server.

To set up the MID Server for this spoke, see Set up MID Server for a spoke.

Search documentation
Search document titles and file paths on the australia branch