Azure / Azure/azure-sdk-tools

[bug] Matrix display names are not being overwritten when using replace argument

Open
#3,655 0 comments 0 reactions 1 assignee Claimed by @benbp View on GitHub
Central-EngSys
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

See for example this config: https://github.com/Azure/azure-sdk-for-net/blob/main/eng/pipelines/templates/stages/platform-matrix.json#L2-L5

And the display output is the variable value, not the display name override value:

![image](https://user-images.githubusercontent.com/1020379/179121750-accb04e3-1b89-4860-b1a2-36cf4440049f.png)

This appears to be happening when using replace arguments, e.g. in the net repo:

```
./eng/common/scripts/job-matrix/Create-JobMatrix.ps1 `
-ConfigPath ./eng/pipelines/templates/stages/platform-matrix.json `
-Selection sparse `
-Replace "Pool=(.*)-general/$1-storage"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.