Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Jenkins Spoke

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.

Spoke actions

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

CategoryActionDescription
Build ManagementDelete BuildDeletes a build from a Jenkins server job.
Get All BuildsRetrieves all the builds for a given Jenkins server job. Returns the URL, build number, and class of each build.
Get Build HistoryRetrieves a range of build history for a given job from the Jenkins server.
Get Build InformationRetrieves the build timestamp, build status, and complete build information of a given job from the Jenkins server.
Get Build NumberRetrieves the build number for a Jenkins server job based on a pre-defined build filter, such as the last successful build.
Perform a BuildExecutes a job on the Jenkins server.
Configuration ManagementCreate Jenkins CredentialsCreates the Jenkins server credentials.
Create NodeCreates 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 NodeDeletes 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 VersionRetrieves the Jenkins server version.
Restart JenkinsRestarts the Jenkins server.
Test ConnectionTests the connection to the Jenkins server.
Job ManagementCopy JobCreates a job by copying an existing Jenkins server job.
Create FolderCreates a Jenkins server folder to organize the jobs.
Create JobCreates a Jenkins server job from an XML file.
Delete FolderDeletes an existing Jenkins server folder.
Delete JobDeletes a Jenkins server job.
Get All Jobs From FolderRetrieves 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 timestampRetrieves the build timestamp of a specified Jenkins server job.
Get Console OutputRetrieves the build console output of a Jenkins server job.
Get Job ConfigurationRetrieves the XML configuration for a Jenkins server job.
Reload JobReloads a Jenkins server job.
Rename JobRenames a Jenkins server job.
User ManagementCreate UserCreates a Jenkins server user.
Delete UserDeletes an existing Jenkins server user.
View ManagementAdd Job To ViewAdds 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 ViewCreates a Jenkins server view.
Delete ViewDeletes a Jenkins server view.
Get All Jobs From ViewRetrieves all jobs from a Jenkins server view. Returns the class and the name of the top-level jobs.
Remove Job From ViewRemoves 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 ServiceNow Otto 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 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 for more information about creating a clone.

  • See for information about AI agents.

Available AI agents include:

AI AgentDescription
Jenkins View Management AI AgentsManages job records and retrieves details of all jobs from a Jenkins server view.
Jenkins Job Management AI AgentsManages jobs and retrieves details of all the jobs from a given Jenkins server folder.
Jenkins Configuration Management AI AgentsManages 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 AgentsManages the Jenkins server user recor.ds
Jenkins Build Management AI AgentsManages a build from a Jenkins server job and retrieves the required build details.

There might be AI agents installed with the Now Assist application that are not used in agentic workflows. To learn how to see all agents that are available to you, see Find AI agents.

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.