Skip to content

Commit 48f8475

Browse files
authored
Add branch counter to APIScan build (PowerShell#18214)
1 parent b90a1e6 commit 48f8475

File tree

1 file changed

+4
-0
lines changed
  • tools/releaseBuild/azureDevOps/templates/compliance

1 file changed

+4
-0
lines changed

tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
# PAT permissions NOTE: Declare a SymbolServerPAT variable in this group with a 'microsoft' organizanization scoped PAT with 'Symbols' Read permission.
1313
# A PAT in the wrong org will give a single Error 203. No PAT will give a single Error 401, and individual pdbs may be missing even if permissions are correct.
1414
- group: symbols
15+
- name: branchCounterKey
16+
value: $[format('{0:yyyyMMdd}-{1}', pipeline.startTime,variables['Build.SourceBranch'])]
17+
- name: branchCounter
18+
value: $[counter(variables['branchCounterKey'], 1)]
1519

1620
pool:
1721
name: PowerShell1ES

0 commit comments

Comments
 (0)