One of the key features in vRealize Code Stream is the ability to control what happens between individual stages in a pipeline. Let’s say you want to run an automated Selenium test against a Jenkins package. Or, suppose you want someone from your operations team to manually approve a deployment into a production environment. vRealize Code Stream lets you define gating rules between stages to allow for these types of checks.
Gating rules are a set of criteria that each stage must pass to proceed to the subsequent stage. if the gating rule is not configured, then the process proceeds to the next stage regardless of the outcome of tasks in the current stage. The default gating rules are Test Acceptance Threshold and Approvals.
Test Acceptance Threshold
For this gating rule, you must provide the threshold percentage value and the test result for a task to succeed the gating rule to the next level. This gating rule accepts the test result from a Jenkins test task. Based on the configured threshold for passed tests criteria, it allows the pipeline run to proceed to the subsequent stage.
Approvals Gating Rule
Looking to get your pipeline approved by a manager before migrating the code to Production? then this gating rule is for you!
In order for it to work, you must provide the approval group DN value and the approval message for a stage to continue or stop. The appropriate user receives an email to approve or reject this workflow. After the user submits or rejects the notification that appears in My Inbox, the workflow either continues or stops.
Gating rules that are associated with a pipeline are specific to an organization or an application. Users can define gating rules when a pipeline template is created. The environments do not need to be aware of these gating rules.
In the following video, I’ll go over exactly how to create a gating rule in vRealize Code Stream, and show a more real world example:
Learn More
Here are some additional resources to help you learn more about vRealize Code Stream and its Artifact Management capabilities:
Catch up on previous Code Stream blog posts:
- 13-Oct-2104 VMware vRealize Code Stream: Enabling Continuous Delivery for DevOps teams
- 11-Dec-2014 Announcing Availability of vRealize Code Stream, Release Automation Software
- 14-Jan-2015 Why Accelerating Application Release Delivery is key to “Business Agility”
- 21-Jan-2015 Code Stream – Leveraging Existing Release Automation Tools and Processes
- 28-Jan-2015 Code Stream – Integration Framework for Multi-Vendor Release Automation
- 04-Feb-2015 Code Stream – The Importance of Artifact Management in Release Automation
- 11-Feb-2015 vRealize Code Stream – Governance and Visibility into the Release Process
- 02-Mar-2015 Introduction to vRealize Code Stream Video
- 09-Mar-2015 Create a Pipeline in vRealize Code Stream