Jenkins Spoke
-
- UpdatedApr 29, 2025
- 5 minutes to read
- Yokohama
- Now Platform Capabilities
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 website 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.2.0 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:
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 Spokes and start using the available AI agents. For more information, see Now Assist for Spokes.
- 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 Now Assist AI Agents for information about AI agents.
Available AI Agents include:
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.