Skip to content

Contribution guide Validate module on scale

CARMLPipelinePrincipal edited this page Jun 27, 2022 · 1 revision

Use this script to tests multiple modules with a given branch, using the CI environment. The script will start the pipelines in the CI environment causing both static & deployment tests to run.


Navigation


Location

You can find the script under /utilities/tools/Invoke-PipelinesForBranch.ps1

How it works

The most important parameter is the 'Environment' you want to run the pipelines for, that is, either GitHub or Azure DevOps. Depending on your choice you'll have to provide a Personal Access Token that grants the permissions to read & trigger pipelines in the desired environment.

Upon triggering, the utility will:

  1. Fetch all pipelines in the target environment and filter them down to module pipelines by default.
  2. Trigger these pipelines for the provided targeted branch (e.g. main)
  3. Return the formatted status badges for the pipelines that were triggered.

How to use it

For details on how to use the function, please refer to the script's local documentation.

Note: The script must be loaded ('dot-sourced') before the function can be invoked.

Clone this wiki locally