Request A Demo
Back to All Blog Articles

Leveraging FlexDeploy Project Package Features

For a long time software development processes have been using packages. A package, for all intents and purposes, is a container file. Much like a zip file, they contain other files such as binaries, source code, scripts, and also a manifest that tells users what this project package means. Some common usages of packages are to make it easier to reuse and share code or to deploy code dependencies to different projects. Often, having a formal system with packages can help expose bugs sooner, making it easier to deliver trustworthy software. FlexDeploy packages, along with other built-in continuous integration and delivery functionality, will allow for a significant increase in productivity for developers and release managers.

In this blog, we will explore the significance of partial projects, how we can utilize project packages, and also integrating change management into the build and deployment of those packages.

Traditional vs. Partial Deployment Projects

In general, projects hold the artifacts that can be built and deployed as a unit. Artifacts can include anything from jar and zip files to SQL or other configurations.

It is important to first understand the difference between traditional (otherwise known as full deployment) and partial deployment projects. The main difference for a partial deployment project is the ability to select a subset of artifact files for build and deploy operations. Consider a technology such as Oracle EBS, Salesforce, or even a database as a use case. With these examples, we have a large system of related or unrelated files such as in EBS which can consist of hundreds or thousands of customizations, each containing dozens of object types. Similarly with a database we could have several tables, views, triggers, or scripts to manage. In either case, FlexDeploy will allow us to dynamically pick and choose which files to build and deploy and save them as packages. It is unlikely that a user would want to deploy all the files in an EBS server or a database to the production environment.

There is much more content with regards to partial deployment projects but today we are diving into packages specifically.

Project Package

In FlexDeploy, packages simply represent a list of files. During package creation, we can define a name, description, status, and the list of files. We can name packages to describe some feature in a release or whatever makes sense for an organization. One way we could organize our packages is by a change ticket number, which we will implement later after setting up a change management system.

FlexDeploy provides a few ways to find and add files to a package:

  1. User can type a partial file name and click on the generated results to add a single file.
  2. Click “Add File(s)” which opens a popup where user can search, select and add files multiple.
  3. Click “Add File(s) from Change Logs” which opens a popup where user can select a source control revision and then it will add all files associated to that change.
A FlexDeploy Project Package

Package status is another useful functionality of which there are 3 options.

  • Active – represent packages still in development and the files inside of the package are still up for change and can be built or deployed
  • Inactive – represent an in between status for packages which are not of current interest but can be easily added back to development
  • Completed – represent packages that cannot be changed, built, or deployed
The 3 Package Options in FlexDeploy Project Package
Demo Project Package in FlexDeploy

Once a package is created we have access to one other feature related to build and deployments on the packages screen.

The empty columns from “Latest Version” to “Prod” are dynamic columns that display an overview of package execution. We can see the most recent build version for each package under “Latest Version”. All the columns afterwards displayed the latest deployment to each environment listed. Keep in mind that the deployment columns match the environments associated to the deploy instance. And of course, all of these columns are empty because we have not run anything yet.

Setting up Change Management

Let’s set up a change management system (CMS) with ServiceNow that will integrate with our packages. We will use change tickets generated by ServiceNow to define the manifest for our packages. First we need to define a ServiceNow instance.

Creating a change management system (CMS) with ServiceNow in FlexDeploy

The CMS instance we created can now be referenced by a folder, application, or any number of projects. Keep in mind that configurations at the folder or application level will apply to all projects beneath it. For this example, we will set the CMS configuration directly on the project.

A CMS instance in FlexDeploy

After selecting the instance we will see the options to require change tickets and to create change tickets on deployment.

Require Change Ticket for Deployment option in FlexDeploy

By default, CMS configuration inherits the global configurations defined in Administration -> Change Management Systems. Let’s override those settings and only check the “Require Change Ticket for Deployment”, which means whenever a user submits a deployment request they must specify a valid change number. The final step is to enforce an external approval for our project and we will create that one level above our project, which is the application level.

Approval in the Production environment in FlexDeploy Project Package

This approval is saying that whenever a project is deployed to the Production environment we need approval on our ServiceNow instance or we would need a user in the FD Administrators groups to override it in FlexDeploy. Now we are ready to submit a build and deployment with packages.

What Makes FlexDeploy Different?

This paper compares FlexDeploy to other commercial and open-source DevOps and Application Release Automation solutions.

Read Paper

Packages by Change Ticket

At this point say a couple change tickets were created in our ServiceNow instance. We will skip the creation of those tickets in ServiceNow because we have an existing blog article that talks about Lifecycle management with ServiceNow.

Change tickets in ServiceNow

In our example, the change ticket numbers generated are CHG0030190 and CHG0030188. Notice that the second change is approved already because it is in an Implement state. Let’s go back to FlexDeploy and create packages to reflect the change ticket numbers. We’ll see why this is useful later.

Change Tickets in FlexDeploy Project Package

Now by definition everything contained inside our packages will relate to the change request and we don’t need to drill into the details of the files to understand what the package is for. At this point, we can run builds on our packages by selecting the package name on the build request form.

Build Request Form in FlexDeploy Project Package

We can see Latest Version will populate on the Package screen once the build is completed.

View Latest Version on the Package Screen of FlexDeploy Project Package
Change ticket number required for deployments

From here we can click on a version number to get the project workflow details quickly. Let’s deploy both of these versions to the “Development” environment and then run a few more builds and deploy to some other environments except for Prod. Recall that we configured CMS on the project to require a change ticket number on deployments.

If we attempt to enter an invalid change ticket number or none at all then the deployment will fail with an appropriate error message.

Error message from an invalid change ticket number

Luckily, due to the convention we followed for the package name we can simply copy and paste the correct change ticket number from package details right below the “Related Tickets” field. In the example above the correct related ticket would be “CHG0030190”.

Package in FlexDeploy

Now we can see that packages have been iterating new versions and those may be deployed to different environments at the same time. At this point, let say our packages are ready to deploy to Production environment. Recall that we set an external approval on the Prod environment. Let’s go ahead and send deployment requests to Prod for both packages to see the implications of our approval.

Sending deployment requests to Production environment in FlexDeploy

Deployment to Prod environment for CHG0030188 immediately went through because it was already approved in ServiceNow. On the other hand, CHG0030190 is waiting at a “Pending Approval” gate until it gets approved or rejected in ServiceNow. Or a member of the FD Administrator group can also approve or reject the pending approval.

Setting status of package to "Completed"

Here is one final look at the package screen to see the state of our builds and deployments at the project level. On a last note, if desired, we could set the status of the CHG0030188 package to “Completed” because the changes for that feature have been pushed to Production. That means no more files can be added or removed from the package and build or deployment requests are not possible for that package.

Conclusion

In this blog article, we were able to show FlexDeploy as tool for organizing your development into change ticket based packages. Configuration of change management system was a one-time action. The package screen gives us insight into most relevant build and deployment execution information without having to search through the full workflow execution list. In general, packages offer great flexibility when organizing your artifact files.

DevOps and CI/CD Done Right

Out of the Box DevOps Platform for your Business and Open Systems

Related Resources

Forrester Wave ISDP 2023

Flexagon recognized in the Forrester Wave ISDP

Flexagon Recognized in the Forrester Wave: Integrated Software Delivery Platforms, Q2 2023 We are delighted to share that Flexagon has ...

Deploy Einstein GPT Generated Components with FlexDeploy

The TrailblazerDX Main Keynote was a highly anticipated event, and it did not disappoint. The biggest news coming out of ...
Ultimate Guide for DevOps: Oracle EBS cover

Ultimate Guide for DevOps: Oracle EBS

Although Oracle EBS has been around for some time, its popularity as an enterprise resource planning solution remains high. In ...

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