---
sourceDocument: Zurich Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/zurich/integrate-applications

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Jenkins v2 Spoke

# Jenkins v2 Spoke {#ariaid-title1}

* Release version: Zurich
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 6 minutes to read

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

## Request apps on the Store {#jenkins-spoke__section_vdh_v2f_mjb}

Visit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) 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](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html).{#jenkins-spoke__inline-send-to-store}

## Integration Hub subscription {#jenkins-spoke__section_rsf_yvb_l3b}

This spoke requires an Integration Hub subscription. For more information, see [Legal schedules - IntegrationHub overview](https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/legal/snc-addendum-integrationhub.pdf).

## Spoke version {#jenkins-spoke__section_pgy_lsv_bsb}

Jenkins v2 spoke v1.4.1 is the latest version.{#jenkins-spoke__jenkinsv2-ver}

## Spoke dependencies {#jenkins-spoke__section_mld_pfb_hlb}

If you're having trouble installing the app, ensure that these
dependent plugins are installed:

* ServiceNow IntegrationHub Runtime (com.glide.hub.integration.runtime)
* ServiceNow IntegrationHub Action Step - REST (com.glide.hub.action_step.rest)
* ServiceNow IntegrationHub Action Template - Data Stream (com.glide.hub.action_type.datastream)

{#jenkins-spoke__ul_u5k_czb_glb}  
Note:  
Some of these plugins are licensable features and require an appropriate license if used outside the spoke implementation. For information on licenses, contact your account manager.

## Spoke requirements {#jenkins-spoke__section_o21_bbc_hlb}

The Jenkins v2 spoke v2 requires generating an API token. See [Security Hardening: New API token system in Jenkins 2.129+](https://jenkins.io/blog/2018/07/02/new-api-token-system/) for more information about the API tokens.

## Supported versions {#jenkins-spoke__section_ahb_5ml_ygb}

All versions between 2.176.2 to 2.222.1.

## Spoke modules {#jenkins-spoke__section_e5k_qfb_hlb}

You can configure the Jenkins v2 spoke v2 to receive updates from Jenkins at your ServiceNow instance. In the routing policies, conditions that must be met to receive updates at your ServiceNow instance are defined. When the conditions are met, routing policy triggers the associated subflow, which in turn automates the Jenkins tasks. This requires separate setup and can be used
independently without using the spoke actions. See [Set up a webhook for the Jenkins spoke](https://www.servicenow.com/docs/zeTrERWvFv6mVy3Qp~HHUA#receive-jenkins-upd "Set up a webhook application to receive the required updates from Jenkins at your ServiceNow instance.") for information regarding setting up and configuring the webhooks. To use other conditions in the routing policy or customize the default subflows, see [Customize a webhook](https://www.servicenow.com/docs/zeTrERWvFv6mVy3Qp~HHUA#cust-subflow-jenkins "Create a webhook routing policy and customize subflow as per your requirement.").  
Routing policies and subflows support these fields:

* Keywords
* Build Number
* Job Name
* Job Path
* Show Related Fields
{#jenkins-spoke__ul_vbt_v1c_hlb}

By default, the Jenkins v2 application is available in the Jenkins v2 spoke and has these modules:  
{#jenkins-spoke__table_rrb_cgb_hlb__entry__2}

| Module | Description |
|-|-|
| Webhook Answer Subflows | Details of the webhook authorization key to authorise requests from Jenkins. |
| Webhook Client Detail | Details about the subflows in Jenkins v2 spoke. |
[ ]

{#jenkins-spoke__table_rrb_cgb_hlb}  
The Jenkins v2 spoke v2 includes these tables:

* Jenkins v2 Webhook Answer Subflow \[sn_jenkinsv2_spoke_webhook_answer_subflow\]
* Jenkins Webhook Client Details \[sn_jenkinsv2_spoke_webhook_client_details\]
{#jenkins-spoke__ul_tjf_jqc_ykb}

## Spoke subflows {#jenkins-spoke__section_q5k_xrd_hlb}

The Jenkins v2 spoke provides sample subflows to demonstrate automating Jenkins tasks. Available sample subflows include:{#jenkins-spoke__table_svz_bsd_hlb__entry__2}

| Subflow | Description |
|-|-|
| Build Jenkins Job | Receives updates from Jenkins at the ServiceNow instance. |
| Jenkins Webhook Answer Subflow: Process build information | Builds Jenkins job and retrieves the information. To customize this subflow, create a copy of the subflow and change it as per your requirement. |
| Build Jenkins Job with Parameters | Builds Jenkins job with the specified parameters and retrieves the information. |
[ ]

{#jenkins-spoke__table_svz_bsd_hlb}

## Spoke actions {#jenkins-spoke__section_zqb_zzn_gfb}

The Jenkins v2 spoke provides actions to automate Jenkins tasks when events occur in ServiceNow. Available actions include:  
{#jenkins-spoke__table_ds2_wwk_4fb__entry__3}

| Category | Action | Description |
|-|-|-|
| Build Management | Delete Build | Deletes a build from a Jenkins server job. |
| Build Management | Get Build ID | Retrieves the Build ID of an executed job from the Jenkins server. |
| Build Management | Get Build Timestamp | Retrieves build timestamp of a given job from the Jenkins server. |
| Build Management | Get Console Output | Retrieves build console output for a given job from Jenkins Server. |
| Build Management | List Builds | Retrieves all the builds for a given job from the Jenkins server. |
| Build Management | Perform Build with Parameters | Executes a job with parameters on the Jenkins server. |
| Build Management | Get Build History | Retrieves a range of build history for a given job from Jenkins Server. |
| Build Management | Get Build Information | Retrieves the build timestamp, build status, and complete build information of a given job from the Jenkins server. |
| Build Management | Get Build Number | Retrieves the build number for a Jenkins server job based on a pre-defined build filter, such as last successful build. |
| Build Management | Perform Build | Executes a job on the Jenkins server. |
| Build Management | Look up Builds by Date Range | Retrieves all the builds between date range for a given job from the Jenkins server. |
| Build Management | Look up Commits by Build | Retrieves the commits of a particular build for a given job from the Jenkins server. |
| Build Management | Look up Stage Nodes by Build | Retrieves information about the Sonar actions, restartable stages, and nodes of all stages of a particular build for a given pipeline job from the Jenkins server. |
| Build Management | Look up Stages by Build | Retrieves the build status, start time, end time, duration, and stages of a particular build for a given pipeline job from the Jenkins server. |
| Build Management | Look up Test Report by Build | Retrieves information about the test summaries, total number of executed tests, passed tests, failed tests, skipped tests, and time taken to execute JUnit tests in a particular build for a given job from the Jenkins server. |
| Configuration Management | Create Node | Creates a node that you can launch with Java Web Start software. A node is a machine that is part of the Jenkins environment and capable of executing jobs. |
| Configuration Management | Delete Node | Deletes a node from the Jenkins server. |
| Configuration Management | Get Version | Retrieves the Jenkins server version. |
| Configuration Management | Restart Jenkins | Restarts the Jenkins server. |
| Configuration Management | Test Connection | Tests the connection to the Jenkins server. |
| Job Management | Copy Job | Creates a job by copying an existing Jenkins server job. |
| Job Management | Create Folder | Creates a Jenkins server folder to organize jobs. |
| Job Management | Create Job | Creates a Jenkins server job from an XML file. |
| Job Management | Delete Folder | Deletes an existing Jenkins server folder. |
| Job Management | Delete Job | Deletes a Jenkins server job. |
| Job Management | List Jobs By Folder | Retrieves all the jobs for a given folder from the Jenkins server. |
| Job Management | Get Job Configuration | Retrieves the XML configuration for a Jenkins server job. |
| Job Management | Reload Job | Reloads a Jenkins server job. |
| Job Management | Rename Job | Renames a Jenkins server job. |
| User Management | Create User | Creates a Jenkins server user. |
| User Management | 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 build-specific jobs. |
| View Management | Create View | Creates a Jenkins server view. |
| View Management | Delete View | Deletes a Jenkins server view. |
| View Management | List Jobs By View | Retrieves all jobs from a view on the Jenkins server. |
| View Management | Remove Job From View | Removes a job from a Jenkins server view. |
[ ]

{#jenkins-spoke__table_ds2_wwk_4fb}

## Spoke triggers {#jenkins-spoke__section_ccf_fn2_t3c}

Use triggers in the Jenkins spoke to subscribe to the required events. The endpoint enables webhooks to connect with your ServiceNow instance. You can configure the flows to execute only when the specified trigger conditions are met. The supported events are:{#jenkins-spoke__table_dvp_gn2_t3c__entry__3}

| Category | Trigger | Description |
|-|-|-|
| Build Management | Build Aborted | Trigger initiates when a Jenkins build is aborted. |
| Build Management | Build Failed | Trigger initiates when a Jenkins build fails. |
| Build Management | Build Success | Trigger initiates when a Jenkins build is successful. |
| Build Management | Build Unstable | Trigger initiates when a Jenkins build is unstable. |
| Job Management | Pipeline Failed | Trigger initiates when a Jenkins pipeline fails. |
[ ]

{#jenkins-spoke__table_dvp_gn2_t3c}

## Connection and credential requirements {#jenkins-spoke__section_hdq_dsj_vdb}

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 v2 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 the Jenkins spoke](https://www.servicenow.com/docs/dWt8kIKR8ZSoO24fbCv0RA#set-up-jenkins "Integrate the ServiceNow instance and Jenkins using basic authentication to authenticate ServiceNow requests.").

## MID Server requirements {#jenkins-spoke__section_gyl_bwj_vdb}

These actions use 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](https://www.servicenow.com/docs/access?context=mid-server-landing&version=zurich&pubname=zurich-servicenow-platform&ft:locale=en-US).

To set up the MID Server for this spoke, see [Set up MID Server for a spoke](https://www.servicenow.com/docs/vBsVe9yQMxv2CGOFt_dQ4Q "Configure MID Server settings on your ServiceNow instance that enables it to integrate with a third-party application via MID Server after you have set up the connection record for a spoke.").

