HCL VersionVault Express, HCL Software’s latest offering in the DevOps space, recently launched with an all-new web UI, REST APIs, and more. VersionVault Express is based on the foundation of VersionVault, bringing with it everything you know and love about HCL’s secure version control and configuration management software, all while making it a breeze to get up and running.

Compass 2.0 launched last year with a similar visual and functional overhaul, and its new REST APIs and webhook capabilities make it the perfect companion for VersionVault Express.

A great example of this is our open-source, sample integration. Built with Node-Red, we were able to quickly create two webhook receivers to connect VersionVault Express and Compass.

For information on how to install the Webhooks package for Compass, which is required for this integration, check out [].

The idea behind the integration is simple: when a Feature, Task, or Story is created and assigned to a user in Compass, a corresponding activity is created on that user’s stream in VersionVault Express.

Then, when they’ve delivered that activity to the project’s integration stream, the Compass record is updated with a note listing the files that were added, modified, and deleted.

To view the flow containing the integration, grab the “flows.json” file from the GitHub repository and open the Node-Red web interface (wherever Node-Red is deployed, for example https://localhost:1880).

From the hamburger menu on the top right of the screen, choose Import -> Clipboard, then browse for the file and open it.

There should now be a flow named Compass/VVE Integration; this is where everything happens.

The SF_Constants subflow is where you’ll configure the integration.

It has a “Set Flow Constants” node, which is where you’ll set various properties relating to your VersionVault Express and Compass instances. They’re pretty straight-forward, but you can find more details about each one in the GitHub repository’s README.

Be sure to deploy the flow to ensure the constants are set and the webhook endpoints are listening for payloads.

Next, notice there are two “HTTP in” nodes, one labeled [POST] /compass and another labeled “[POST] /vve”, each handling the webhook payload from the product they’re labeled for.

When a payload comes in from Compass, the flow will do a few things in sequence:

  1. Authenticate with VersionVault Express
  2. Pull out the username that the record was assigned to, and the name of the solution the record was added to
  3. Use the solution name to find the project in VersionVault Express
  4. Use the name of the project and the username to get their development stream
  5. Create an activity on that stream with the name being the Compass record ID

Delivering the activity will send a payload to the VersionVault Express webhook receiver, kicking off the following sequence:

  1. Authenticate with Compass and VersionVault Express
  2. For each activity that was delivered:
    1. Get its changeset and work out which files were added, modified, and deleted
    2. Use the activity’s name to modify the associated Compass record, adding the file information as a note

It’s important to note that we deliberately kept this sample simple. To do that, we built a couple assumptions into it:

  1. A user will exist in both VersionVault Express and Compass, and their username will be the same for both
  2. A user will have only one development stream in a project (with the name format of <project name>_<username>) and that’s the project that the activity will be created on
  3. The project in VersionVault Express should match the Solution being used in Compass

The various webhook events available in the latest releases of VersionVault Express and Compass make it easy to extend their functionality, whether it’s a simple notification receiver or a complex integration between multiple products.

Comment wrap
Further Reading
article-img
Secure DevOps | April 29, 2022
Installing VersionVault Express on AWS
The blog aims to create a zero to fully working instance of VersionVault Explorer on AWS. The assumption is that the reader has a valid credential on AWS with permission to EC2 and S3 on an admin level. We also presume, the user has his initial setup in place and can take off with the installation with the instructions that follow.
article-img
Secure DevOps | January 13, 2022
Comparing file in VersionVault Express
VersionVault Express features an intuitive side-by-side comparison viewer where you can easily compare files and directories. VersionVault Express not only allows you to compare elements against their immediate predecessor but also to compare them against the changeset predecessor.
article-img
Secure DevOps | January 12, 2022
How to automatically create webhooks on new streams
In this article we’ll look at one such extension and show how to automatically give newly created streams the ability to request builds.
Close
Filters result by
Sort:
|