Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Boards>Build Version Dashboard

Build Version Dashboard

Sivaraj Shanmugam

|
16 installs
| (1) | Free
List Build Version From Variable Group

List Build Version from Variable Group

This widget helps to list build version from variable group based on environment.

Getting Started

Create Variable group for all the Application and environment first,
Note: For Update Variable group value from Pipeline see AddOns below.

Configure the Widget to load the data,

Output

AddOns

Task update build version information from YAML pipeline to variable group

  - task: PowerShell@2
    name: VariableGroupUpdate
    displayName: 'Update Build Version into Variable Group'
    inputs:
    targetType: 'inline'
    script: |
        $vg_key = "Dev__test1"
        $vg_value = "2__TestApplicationVersion.20212121.1.Release.zip__2023-02-24-11-12-12"
        $url = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$env:SYSTEM_TEAMPROJECTID/_apis/distributedtask/variablegroups/1?api-version=6.0-preview.1"
        Write-Host $url
        $header = @{
        "Authorization" = "Bearer $(System.AccessToken)"
        }
        [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

        $def = Invoke-RestMethod -Uri $url -Headers $header

        $def.variables.$vg_key.value = $vg_value
        $body = @($def) | ConvertTo-Json -Depth 100 -Compress
        $def = Invoke-RestMethod -Method 'Put' -Uri $url -ContentType 'application/json' -Headers $header -Body $body
    errorActionPreference: 'continue' 
    
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft