Pipeline
A pipeline orchestrates the delivery of snapshots across the stages/environments. Â While a deploy workflow defines the implementation for the delivery of a single build artifact into an environment, the pipeline operates at a higher level and orchestrates the propagation of many deployments across many stages/environments. The pipeline includes facilities for approvals, manual tasks, scheduling, deployments, and much more.
See Creating/Editing a Pipeline Version to manage pipeline details.
A sample pipeline definition with three stages, see Example Pipeline for additional example.
The pipeline above has three stages, Development, QA, and Production.  The Development stage does not have any gates, which means the steps begin execution immediately.  The "Deploy All" step deploys all of the project versions in a snapshot into the Development environment, which utilizes the deploy workflows of the underlying projects to facilitate this work. The QA stage has three gates.  The "Verify Functional Tests" gate verifies that tests for the projects in the snapshot in Development meet the configured qualifier metrics.  If the qualifier metrics did not pass then the gate fails, otherwise, the gate completes and it transitions to the next gate.  The "QA Approval" gate creates an approval task for the QA Manager group and blocks execution until approved. When the approval is given, the "Deploy All" step for QA is executed. Another test is also run and an email notification to sent to a QA group. When the notification is complete, the pipeline execution transitions to the Production stage and executes its gates and steps (similar to QA). However, in the production stage, the approval is outsourced from an external Change Management System (i.e. ServiceNow CAB) instead of internally in the FlexDeploy application.
In a typical release, most of the snapshots will not make it very far through the pipeline. Â The approval gates are either rejected, or the snapshot is simply made "Out of Date" by a newer one. Â Depending on the size and complexity of a release, there may be dozens or even hundreds of iterations in the lower stages before the first snapshot is promoted to the later stages. Â In fact, it is possible that only one snapshot for the release ultimately makes its way all the way to production. Â At such time, the release may be ended, and a new one is created. Â However, if desired, the same release can be used to deliver additional fixes or updates.
Pipeline Gates
Gate Type | Description |
---|---|
Creates an approval task for the defined group, and blocks transition until the task is approved. Â If the task is rejected, the stage execution is marked as failed, and execution is terminated. | |
Creates an approval task tied to an external system (e.g. ServiceNow), and blocks transition until the task is approved. Â If the task is rejected, the stage execution is marked as failed, and execution is terminated. | |
Blocks transition until the defined schedule is reached, or overridden by a user with appropriate privileges. | |
Evaluates the test qualifiers for any tests which were executed for the same snapshot in the configured environment. The gate is successful if the qualifiers determine success, or fails otherwise. | |
Evaluates any scans that were executed within the current pipeline execution on build or in a previous environment in the pipeline. The gate is successful if the qualifiers determine success, or fails otherwise. | |
Executes custom groovy based implementation of gate. |
Pipeline Steps
Step Type | Description |
---|---|
Deploys a single project version from the snapshot to the current stage. | |
Deploys all project versions from the snapshot to the current stage, using the deploy priorities configured on the release. | |
Executes the configured pre-deploy workflow for a single project version from the snapshot to the current stage. | |
Executes all the configured pre-deploy workflows for project versions from the snapshot to the current stage, using the deploy priorities configured on the release. | |
Executes tests in the current stage for a single project, according to the defined strategy (on the project). | |
Executes tests in the current stage for all projects in the snapshot, according to the defined strategy (on the projects). | |
Executes custom groovy based implementation of step. | |
Executes a single utility workflow in the current stage. | |
Executes all utility projects in the release for the current stage according to the deploy priorities. | |
Promotes current snapshot project versions to a specific release. | |
Sends an email to provided email address, FlexDeploy User, or FlexDeploy Group. | |
A container for other steps to be executed serially. Â Useful to execute the entire group in parallel to another step or group. | |
Halts execution for a configured number of seconds, or until a particular date and time. | |
Halts execution waiting for the task to be marked complete by a user in the defined group. | |
Halts execution until the date/time evaluated by the given cron expression is reached. | |
Deploys all projects versions in the snapshot and executes all utility workflows defined in the release, using the configured deploy priorities. |
- style