in GitLab 18.x Cloud, you can absolutely integrate with ServiceNow to support:
- โ Change Management workflows
- โ Incident Management
- โ Automated Service Request Fulfillment
However, this requires the use of GitLabโs ServiceNow DevOps Integration App, available via the Atlassian Marketplace and ServiceNow Store.
โ GitLab โ ServiceNow Integration (as of GitLab 18.x)
GitLab provides official, bi-directional integration with ServiceNow DevOps for enterprise-level DevSecOps automation.
๐น 1. Change Management Workflow Integration
โ What You Can Do:
- Automatically create Change Requests (CRs) in ServiceNow when a pipeline runs or code is merged in GitLab.
- Require ServiceNow approval before deployment.
๐ง Example Use Case:
- MR merged to
mainโ triggersPre-approved Change Requestin ServiceNow โ waits for approval โ continues deployment.
โ How to Set Up:
- In ServiceNow:
- Install ServiceNow DevOps plugin
- Install GitLab Integration App from ServiceNow Store
- In GitLab:
- Configure a WebHook or use Custom GitLab CI Job to send pipeline events to ServiceNow.
- Optionally configure via GitLab Compliance Center โ Pipeline Execution Policies
- You can also configure a change control gate in
.gitlab-ci.yml:
approve_change_request:
stage: deploy
script:
- curl -X POST https://servicenow/api/trigger-change
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
Code language: JavaScript (javascript)
๐น 2. Incident Management Integration
โ What You Can Do:
- Auto-create incidents in ServiceNow when pipelines or deployments fail.
- Link GitLab issues/MRs to ServiceNow incident records.
๐ง Setup:
- Use ServiceNow DevOps Events API
- Configure a GitLab WebHook or CI job to send failure events to ServiceNow
- Tag ServiceNow incidents with commit/MR metadata for traceability
๐น 3. Automate Service Request Fulfillment
โ What You Can Do:
- Use GitLab pipelines to fulfill service catalog requests (e.g., provision infra, deploy apps)
- ServiceNow โ GitLab triggers via MID server or API connector
- GitLab โ ServiceNow updates back with logs/status
๐ง Setup:
- Define catalog workflows in ServiceNow
- Trigger GitLab pipelines via:
- API calls (
POST /projects/:id/trigger/pipeline) - Custom catalog items with Flow Designer
- API calls (
โ Summary Table (GitLab 18.x Cloud)
| Feature | Supported | Setup Method |
|---|---|---|
| Change Management | โ Yes | GitLab DevOps App in ServiceNow + WebHooks |
| Incident Management | โ Yes | GitLab WebHooks + ServiceNow Events API |
| Service Request Fulfillment | โ Yes | Catalog Items + GitLab pipeline triggers |
๐ Official Resources
Hereโs a complete, production-ready .gitlab-ci.yml example that integrates with ServiceNow to:
- ๐ง Create a Change Request via API
- ๐ Wait for ServiceNow approval
- ๐ Proceed with deployment only if approved
โ Prerequisites
- You have a ServiceNow DevOps integration set up.
- You have a ServiceNow API endpoint to:
- Create Change Requests (
/api/devops/create-change) - Poll status (
/api/devops/change-status)
- Create Change Requests (
- You have a valid bearer token (stored as GitLab CI variable:
SERVICENOW_TOKEN)
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals