Test Gate

The Test gate evaluates any tests that were executed within the current pipeline execution in a previous stage to determine whether the configured test qualifiers are met.  If the qualifiers are met, the execution is passed through the gate.  If any of the qualifiers are not met, the stage gate execution is marked as failed, and the pipeline execution fails.

Field

Description

Field

Description

Name

The name of the gate.

Description

An optional description for the gate.

Test Qualifier

The qualifying conditions to determine if the tests defined have been executed according to requirements. Possible values out of the box are:

  • All Tests PASSED

  • No Qualifier

  • Percentage of Tests PASSED greater than

  • Percentage of Tests PASSED greater than or equal to

  • Percentage of Tests FAILED less than

  • Percentage of Tests FAILED less than or equal to

  • Number of Tests PASSED greater than

  • Number of Tests FAILED less than

  • Average Response Time Less than or equal to

Test Qualifier Value

Value for the qualifying conditions. Only applicable when Test Qualifier is one of the following:

  • Percentage of Tests PASSED greater than

  • Percentage of Tests PASSED greater than or equal to

  • Percentage of Tests FAILED less than

  • Percentage of Tests FAILED less than or equal to

  • Number of Tests PASSED greater than

  • Number of Tests FAILED less than

  • Average Response Time Less than or equal to

Test Results for Environment

The FlexDeploy environment/stage within this pipeline to evaluate test result qualifiers for the current snapshot.  

Test Override Role

An optional pipeline role that has privileges to override the gate in case of tests are not passing defined qualifiers.

Optionally, use a Groovy expression to make this field dynamic based on some contextual value (e.g. a property defined on the pipeline, and specified on the release).

When using a role script you can dynamically return a key/value pair. For example return [type: 'groupName', value: 'FD Administrators']. Supported types are roleId, roleName, groupId, and groupName. You can return Map with single key/value pair or list of such single key/value maps.

If not specified, user with Manage Gate Execution pipeline permission (via Role membership) or a FlexDeploy Administrator can override the gate.

Precondition

An optional Groovy script which determines whether the gate or step is applicable during execution. The script has access to variables and methods listed in Pipeline Groovy Variables and Methods. You can find these variables and methods while using the Groovy Editor.

The script must return true if the gate is applicable, or false otherwise.  If no script is provided, the default is to return true (applicable).





The following macros are not currently supported in the footer:
  • style