---
sourceDocument: Brazil IT Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Log change request state

# ServiceNow DevOps change request state in Jenkins pipeline logs {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of ServiceNow DevOps Change Request State in Jenkins Pipeline Logs

This feature allows ServiceNow customers to monitor the state of change requests directly within Jenkins pipeline console logs.
By configuring Jenkins pipelines using the Jenkins Snippet Generator, developers can receive real-time updates on change request statuses and related policy conditions as the pipeline executes.
This integration helps teams track change progress and decisions without leaving the Jenkins environment.
Show full answer Show less  

## Configuration and Key Parameters

To enable change state notifications in Jenkins logs, use the Pipeline Syntax to generate and customize the **SnDevOpsChange** step snippet. Key variables to configure include:

* **Polling Interval:** Frequency in seconds for Jenkins to poll ServiceNow and update logs with change status when key fields (such as state, assignment group, approvals, planned dates, or details) change. If left empty, polling is disabled.
* **Change Creation Timeout:** Timeout in seconds to wait for change request creation. Upon timeout, Jenkins verifies creation status and either aborts or resumes the pipeline based on the abort flag. If empty, no timeout check is performed.
* **Abort on Change Creation Failure:** Determines whether to abort the pipeline if the change request is not created within the timeout period.
* **Change Step Timeout:** Timeout in seconds to wait for change step completion. If the step is still in progress after this, Jenkins will abort or resume the pipeline depending on the abort flag. No value disables the check.
* **Abort on Change Step Timeout:** Controls whether the pipeline aborts if the change step timeout is reached without completion.

## What Customers Can Expect in Jenkins Logs

The Jenkins pipeline console logs will display detailed information about the change request whenever it is created or updated. This includes:

* Change request attributes such as number, status, sysid, type, risk, priority, change state, planned start/end dates, and a URL link to the change request.
* Evaluation of associated policy conditions and decisions, such as auto-approve, auto-reject, or manual approval, especially when DevOps Change Request policies (Minimal or Advanced Automation) are activated.
* Logs corresponding to base system change flows and policies, showing policy inputs and decisions stored in the Decisions \[sysdecisionquestion\] table.
* Policy conditions will be evaluated if they use certain predefined fields (e.g., code coverage, risk, number of outages, tests passing percent) and operators (e.g., =, !=, \<, \>, ISNOTEMPTY).
* If custom fields are added to change policies beyond the base system fields, these must be manually included in the flow to enable evaluation and corresponding logs.
* If a change request fails to be created, the failure reason and state are logged to assist troubleshooting.

## Practical Benefits for ServiceNow Customers

* Enables close integration between ServiceNow change management and Jenkins CI/CD pipelines for improved visibility.
* Helps developers and release engineers track change request progress and policy decisions without switching tools.
* Improves automation and governance by displaying policy evaluations and decisions in real time.
* Provides configurable error handling to control pipeline behavior on change creation or step timeouts.  
You can use the Jenkins Snippet Generator utility to configure how and when the change state and the
corresponding policy conditions must be displayed in the Jenkins pipeline job logs. This enables developers to view the status of the change in the console logs of the pipeline itself.  
To generate a step snippet, navigate to the Pipeline Syntax from a configured pipeline, select the SnDevOpsChange step from the Sample Step list, and update the values for the change state variables in the step. Select the ignore error option to prevent job failure if there is an error. Select Generate Pipeline Script to create a snippet. You can copy and paste the snippet into the pipeline to start receiving the change state notifications. Update the following variables in the SnDevOpsChange step to receive change state notifications:

* Polling Interval: Specifies the frequency (in seconds) at which Jenkins polls ServiceNow for the change status and updates the console logs with the status. The change status is updated in the console logs only when the Change state transitions, Assignment Group updates, Approval updates, Planned Start/End date, or Change Details (if any) fields are updated.  
  Note:  
  If no value is entered in the field, polling interval check won't be run to update the change status in the console logs.
* Change Creation Timeout: Specifies the change creation timeout value in seconds. On timeout, Jenkins checks the change creation status in ServiceNow. If the change did not get created, the pipeline is resumed or aborted based on the Abort on change creation failure flag. By default, the pipeline is aborted when timeout is specified and the Abort on change creation failure flag is selected.  
  Note:  
  If no value is entered in the field, change creation timeout check won't be run to update the pipeline.
* Abort on change creation failure: Abort or resume the pipeline if change is not created till the change creation timeout.
  * Selected: Abort
  * Cleared: Resume
  {#change-request-state-in-jenkins-pipeline-logs__ul_wpq_lvg_wwb}
* Change Step Timeout: Specifies the change step timeout value in seconds. On timeout, Jenkins checks the change step status in ServiceNow. If the change step is still in progress, the pipeline is resumed or aborted based on the Abort on change step timeout flag. By default, the pipeline aborted when timeout is specified, and the Abort on change step timeout flag is selected.  
  Note:  
  If no value is entered in the field, change step timeout check won't be run to update the pipeline.
* Abort on change step timeout: Abort or resume the pipeline if the change step is still in progress on change step timeout.
  * Selected: Abort
  * Cleared: Resume
  {#change-request-state-in-jenkins-pipeline-logs__ul_vkc_wvg_wwb}
{#change-request-state-in-jenkins-pipeline-logs__ul_apv_y5g_wwb}

You can navigate to the console logs in your pipeline to view the state of a change request when a change request is created or when the state of the change request is updated. The policy conditions
associated with the change request state will also be evaluated and displayed in the logs. For example, if the DevOps Change Request Advanced Automation policy is activated, the policy conditions will be evaluated and the
corresponding decision made (auto-approve/auto-reject/manual-approval) will be displayed in the logs.  
The following change request details are displayed:

* number
* details
* status
* sys_id
* type
* risk
* priority
* changeState
* plannedStartDate
* plannedEndDate
* changeRequestURL
{#change-request-state-in-jenkins-pipeline-logs__ul_az3_2p1_tcc}


The logs for policy conditions will be displayed for the base system change flows as follows:

* DevOps Model Change Policy: Only logs will be displayed on change creation and when the change state is updated.
* DevOps Change Request Minimal Automation Policy: Logs along with change decision and policy conditions corresponding to the change decision will be displayed.
* DevOps Change Request Advanced Automation Policy: Logs along with change decision and policy conditions corresponding to the change decision will be displayed.
{#change-request-state-in-jenkins-pipeline-logs__ul_y3x_1jt_xxb}  
The change policy input and decision conditions are stored in the Decisions \[sys_decision_question\] table. Logs will be displayed if the following fields and operators are used as input for policy conditions:

Fields
:
    * code_coverage
    * commits_without_work_item
    * integration_tests_failed
    * load_tests_failed
    * regression_tests_failed
    * num_of_outages_in_last_7_days
    * num_of_current_outages
    * num_of_open_incidents
    * total_num_of_commits
    * tests_passing_percent
    * risk
    * code_security
    * commits
    {#change-request-state-in-jenkins-pipeline-logs__ul_qkg_xjt_xxb}

Operators
:
    * \<=
    * \>=
    * !=
    * =
    * \<
    * \>
    * ISNOTEMPTY
    * ISEMPTY
    * BETWEEN
    * ANYTHING
    * NSAMEAS
    * SAMEAS
    * GT_FIELD
    * LT_FIELD
{#change-request-state-in-jenkins-pipeline-logs__ul_dst_kpt_xxb}  
Note:  
If any field is modified in a change policy other than the base system fields, then those fields must be manually added to the flow for policy conditions to be evaluated.

If a change request does not get created due to any issue, then the reason for the failure and the state is also logged in the console.

