Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (39 loc) · 1022 Bytes

append-variable-group.md

File metadata and controls

49 lines (39 loc) · 1022 Bytes

Description

Append an existing variable group in Azure DevOps project and its services.

Command Prerequisites

This command requires to have an existing bedrock project that was initialized with spk project init. It also requires that the variable group to be added exists in the Azure DevOps project.

Example

When an bedrock project repository is first initialized with spk project init, it will create a bedrock.yaml file that looks similar to this:

rings:
  master:
    isDefault: true
variableGroups: []
services: []
.
.
.

running spk project append-variable-group my-vg with a variable group name, in this case my-vg, will add it under the variables section if it does not already exist:

rings:
  master:
    isDefault: true
variableGroups:
    - my-vg
services: []
.
.
.

If there are any services specified, it will add the variable group to its corresponding build-update-hld.yaml file under the variables section:

variables:
  - group: my-vg