Request A Demo
Back to All Blog Articles

FlexDeploy Service Management: Manual Ticket Entry

Service Management plays an integral role in managing, delivering, and auditing changes across the pipeline, as well as tracking incidents that occur as part of the software delivery lifecycle. In this blog series I will showcase four use cases for integrating a FlexDeploy pipeline with ServiceNow.

One of the most common use cases that we encounter for Change Management integration is to use a single change ticket to gate the deployment into production. In many organizations the ticket is required for production, but not for deployment into the lower environments within the pipeline.

In this use case we will assume that the change ticket was created prior to the release reaching the production stage, and that the change number (or related ticket as it is called in FlexDeploy) will be entered by the user.

Change Management System – ServiceNow

FlexDeploy supports integration with ServiceNow out of the box. We will look at advanced configuration for the change management system in the next blog article in this series, but for the fist use case the default configuration is sufficient.

Default Configuration of ServiceNow in FlexDeploy's Change Management System

Change Management Instance

Next we will create a connection to our ServiceNow installation.

In addition to the URL and credentials, an Approved Check Script and a Rejected Check Script (not shown) are provided to define the rules for determining whether the ticket is approved or rejected. These are Groovy scripts which return a boolean. The TICKET object contains the ticket fields which can be referenced using dot notation (e.g. TICKET.myfield.mysubfield). The fields are the JSON attributes as returned by the ServiceNow REST API. Here we will simply define that the ticket is approved when the approval attribute is ‘approved’.

Creating a connection to the ServiceNow installation.

Pipeline Definition

The pipeline defines three stages, Development, QA and Production.

The Development stage does not have any gates and simply deploys the contents of the release snapshot. The QA stage has an approval required by the QA Manager and then deploys to QA. The Production stage is where we will bind an approval to a ServiceNow change ticket (change request). Once the ticket is approved, the scheduled gate will wait until Saturday at 9pm before ultimately deploying.

The three stages of a pipeline in FlexDeploy: Development, QA and Production

The CAB Approval gate is an External Approval Gate which is bound to our ServiceNow instance.

The CAB Approval gate in an External Approval Gate in FlexDeploy

Release

I have created a release which has two packages, and bound it to the pipeline shown above.

Two packages bound to a pipeline in FlexDeploy

In Action!

Now that the configuration is complete, I created a snapshot for my release and advanced the execution to the CAB Approval gate in the release dashboard. You can see that the CAB Approval gate is now pending approval.

CAB Approval gate pending approval in the FlexDeploy release dashboard.

We can associate a change ticket by clicking on the paper-clip icon.

A change ticket in Flexagon's FlexDeploy

The ticket that I have associated is already approved (i.e. approval field is “approved’) in ServiceNow. After a minute or two we will see that the gate is automatically approved and the execution advances to the scheduled gate.

Ticket approved in ServiceNow

After 9pm the final gate will be cleared and the production deployment will execute. I will not show it here, but our change ticket will be associated with the deployments in this stage. The execution details and reports will provide the lineage to the change ticket number for audit purposes.

Summary

This is the simplest of the change management use cases, yet the most common one we see from our customer base. The next two blog articles in this series will showcase some other use cases which can be implemented with ease.

Next Post: FlexDeploy Service Management: Automated Ticket Creation for QA and Production

Related Resources

Unlock the Power of DevOps Compliance for Your Enterprise Software

In today’s fast-paced software development environment, ensuring compliance with regulatory standards and policies is not just a necessity—it’s a strategic ...

Integrating Tricentis Tosca (DEX) with FlexDeploy for Test Automation

Tricentis Tosca is a software testing tool that is used to automate end-to-end testing for software applications. Tricentis Tosca combines ...

Integrating ACCELQ with FlexDeploy for Seamless Test Automation

ACCELQ is a cloud-based, continuous testing platform that offers codeless test automation for web, mobile, API, desktop, and packaged applications. ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox