A change request created from a pipeline depends on three things: the change model or type it follows, the attribute sources that set its fields, and the commits and artifact versions attached to it. Settle those before the first run, and approvers receive a complete record instead of a half-filled one. For a plain-language overview of the product itself, see what ServiceNow DevOps is in plain language.
Choosing a change model before the pipeline runs
The base system includes two change models for pipeline work, DevOps and DevOps Simplified, and both are active by default. The DevOps model runs New, Assess, Authorize, Scheduled, Implement, Review, Closed and Canceled, with approval in Assess. The Simplified model drops Assess, so approval moves to Authorize and an approved change proceeds to Scheduled. Neither DevOps model supports Argo CD or Split tool change requests, so those pipelines need their own plan. The governance decisions behind those approval points are covered in the DevOps governance model.
Model or type: what the flag decides
Whether a pipeline creates a model-based or a type-based change is governed by com.snc.change_management.change_model.type_compatibility, which defaults to False under System Properties. The result depends on that flag and on what the step and the pipeline supply.
| Type compatibility | Step configuration | Pipeline passes | Result |
|---|---|---|---|
| True | Model set | Nothing | Model-based change |
| True | Model set | Type Normal | Type-based change |
| True | Model set | A different model | Change follows the passed model |
| True | Type set, no model | Nothing | Type-based change |
| False | Model set | Nothing | Model-based change |
| False | Model set | Type passed | Error |
| False | Neither set | Nothing | Error |
With the flag at False, a change can come from a model alone. The error message names the fixes: enable the flag, configure a model on the step, or pass a model sys_id or name from the pipeline.
Upgrading existing steps
After an upgrade, type-based creation keeps working while the flag is True. Setting it to False makes the Change model field on the Step form required, so existing steps need a model first. The DevOps Pipeline Migration to Change Models catalog item can update many steps at once. It is turned off by default, and each run goes through approval.
Resolving attribute conflicts
Attributes can arrive from the changeInfo REST endpoint, the Default Change Handler subflow, the pipeline step, Update functions in Azure DevOps and Jenkins pipelines, custom actions, and automated approval flows. When two sources set the same field, precedence decides.
For a standard type-based change, pipeline values come first, then step record fields, then a template passed from the pipeline, then the template on the step. For a non-standard type-based change, the Default Change Handler subflow and approval flows sit directly below the pipeline values. For a model-based change, model presets sit above everything. For how these sources connect to the platform, see DevOps integration patterns.
Two cautions follow. Setting one attribute in both the Default Change Handler subflow and an approval flow can conflict, because the two may run at the same moment, so pick one source per field. Timing also matters: in one worked example, the subflow sets the assignment group at creation and the pipeline’s Update function replaces it after approval. If your change operations use business rules, set sn_devops.change_request.apply_attributes_on_creation to true.
Updating a change from outside the pipeline
The changeInfo route, a PUT against the DevOps orchestration changeInfo path, updates an existing change. It does not respond while the pipeline is paused and cannot run while the pipeline waits, so test it thoroughly before relying on it.
Inside a pipeline, the changeControl endpoint can set fields such as type, assignment_group and chg_model. Risk and impact cannot be passed, because the platform calculates them. A field whose required dependent is missing cancels the change and its step execution, and the work notes explain why. For the configuration side, see ServiceNow DevOps config explained.
Commits and artifact packages decide what the change shows
For a manual change, the request lists commits from the artifact versions in its package, plus run commits from plan or pipeline execution data. For an automated change without a package, it lists commits from the artifact versions linked to the pipeline execution and its task executions. With a package, the logic looks for a production deploy step upstream. If it finds one, the change lists commits from the last successful production deploy run. If not, it lists commits from all artifact versions in the package. Failing both, it falls back to upstream run commits.
Semantic versions matter. Patch and hotfix versions are excluded from the package commit set, so a 1.1.1 build does not add its commits to a 1.2.0 package. Commits that appear in several executions are listed once. Revert commits and the commits they undo are both left out, and merge commits carry a merge flag. A squash and merge produces one commit with that flag set.
A branch example
Take a main branch and a test branch. An artifact version covers commits made on its own branch since the previous artifact version, so test-branch commits stay out of the main branch version. Commits from a failed CI run still attach to the next version that builds. Other steps, such as Test or Deploy, can borrow the production deploy logic through sn_devops.commit_rel_change_step_type.
Registering artifacts and packages
Build pipelines register artifact versions through the artifact registration endpoint. Each version carries its commits, tests and code scans, so that activity can be retrieved when the version deploys later or from a different pipeline. The release pipeline creates the package through the package registration endpoint, which requires a package name. The package step must sit in a stage before the change step, so the package links to the execution the change uses.
Run commits need a commit record in ServiceNow that exists before the run. Azure DevOps shows none, and GitLab and Jenkins show just the last commit. GitHub shows the last commit unless a property widens the window to 2,000 commits after the last successful workflow run. For other common setup errors, see common ServiceNow DevOps mistakes and how to avoid them.
Closing the change and handling partial data
Setting autoCloseChange to true updates the close code and close notes and closes the change when the pipeline completes. With false, the close fields still fill in, but the change stays open. Auto close suits basic pipelines with one change, and it does not apply to Jenkins freestyle pipelines or to changes with change receipt enabled.
When a lookup for work items, test summaries or security data fails, the property for change creation with retrieval errors, available for Azure DevOps, GitHub Actions, GitLab, Jenkins and Harness, lets the change be created anyway. The failures are recorded in the work notes, and the change is flagged as partial data, which forces manual approval. With the property off, the pipeline aborts instead.
The callback to the orchestration tool fires at the model’s implementation state, or at the first of several. The callback timeout, sn_devops.change_request_callback_timeout, defaults to 120 minutes and cannot go below 60.
Creating changes by hand or from the pipeline
| Route | Starting point | Roles |
|---|---|---|
| Classic UI | Change, Create New, Create Normal Change | sn_devops.admin or sn_devops.app_owner |
| Workspace | DevOps Change Workspace, Applications, Create manual change | sn_devops.admin |
| Automated | DevOps Change Workspace, Automate change creation | sn_devops.admin, sn_devops.tool_owner or sn_devops.app_owner |
Manual routes use the DevOps category, or Other with the DevOps Change option in Classic UI, then Add DevOps Data to attach artifact versions or build numbers. Change receipt, enabled from the automation screen, creates the change without pausing the pipeline, and the change then transitions automatically unless the sn_devops.enable_change_receipt_state_transition property is disabled. Changes can carry a category other than DevOps once the property for categorizing DevOps change requests is enabled. The property is off by default. When it is on, any change created from the DevOps application counts as a DevOps change, whatever its category.
Reading the Pipeline UI and tool limits
The Pipeline UI colors each step: green for passed, grey for not yet run, yellow for waiting and red for failed. It shows each rerun attempt, and it can cancel the change when a step fails if sn_devops.cancel_change_on_pipeline_cancel is set to Yes.
Azure DevOps, GitHub and GitLab can throttle API requests. A throttled tool shows the Throttled status, and new inbound events wait in a Deferred state until the reset time passes. Where a tool gives no reset time, the default is 15 minutes. The Tool Connection Status table shows throttle state and reset time. For connection failures, the troubleshooting guide for ServiceNow DevOps is the next stop.
Frequently asked questions
Why does my pipeline fail with a change model error?
With the type compatibility flag at False, a change must come from a model. If the step has no model and the pipeline passes a type, creation fails. Configure a model on the step, or pass a model name or sys_id from the pipeline.
Which model suits a standard release pipeline?
Both base models are active by default. The DevOps model approves in Assess, and the Simplified model approves in Authorize. Pick the one whose approval step matches your process.
Why are some commits missing from my change request?
Patch and hotfix versions are excluded from a package’s commit set. Revert commits and the commits they undo are both left out. Commits on other branches do not count, and a commit must exist in ServiceNow before the run to appear as a run commit.
Can a change be raised when some DevOps data cannot be read?
Yes, for the supported tools, once the property for creation with retrieval errors is enabled. The change is created with the data that arrived, the failures are recorded in the step execution and work notes, and approval is manual.
Will the change close when the pipeline finishes?
It will when the pipeline sets autoCloseChange to true. When the pipeline leaves that value out, the Auto Close Change column decides, and Update and Close Change closes the change. A pipeline value takes precedence over the column, so autoCloseChange set to false keeps the change open even when the column says Update and Close Change. Jenkins freestyle pipelines and changes with change receipt enabled do not use auto close.
Can the assignment group change after the pipeline sets it?
Yes. A later source, such as a pipeline Update function that runs after approval, can set it again, and the later value holds.