Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions pipelines/azure-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
stages:
- stage: RunBenchmark
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux
variables:
- template: /pipelines/templates/variables/image.yml
- template: /pipelines/templates/variables/globals.yml
jobs:
- job: RunBenchmark
displayName: 'Run Copilot Benchmarks'
steps:
- task: AzureCLI@2
displayName: 'Run Copilot Benchmarks script'
inputs:
azureSubscription: 'Azure SDK Engineering System'
scriptType: 'pscore'
scriptLocation: 'scriptPath'
scriptPath: $(Build.SourcesDirectory)/pipelines/scripts/Invoke-CopilotBenchmarks.ps1
arguments: >
-BuildId $(OfficialBuildId)
5 changes: 5 additions & 0 deletions pipelines/scripts/Invoke-CopilotBenchmarks.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
param(
[string]$BuildId
)

Write-Host "Invoking Copilot Benchmarks for Build ID: $BuildId"
5 changes: 5 additions & 0 deletions pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variables:
OfficialBuildId: $(Build.BuildNumber)
skipComponentGovernanceDetection: true
nugetMultiFeedWarnLevel: 'none'
GDN_SUPPRESS_FORKED_BUILD_WARNING: true
28 changes: 28 additions & 0 deletions pipelines/templates/variables/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Default pool image selection. Set as variable so we can override at pipeline level

variables:
- name: LINUXPOOL
value: azsdk-pool
- name: LINUXARMPOOL
value: azsdk-pool-arm64
- name: WINDOWSPOOL
value: azsdk-pool
- name: MACPOOL
value: Azure Pipelines

- name: LINUXVMIMAGE
value: ubuntu-24.04
- name: LINUXARMVMIMAGE
value: azure-linux-3-arm64
- name: WINDOWSVMIMAGE
value: windows-2022
- name: MACVMIMAGE
value: macos-latest

# Values required for pool.os field in 1es pipeline templates
- name: LINUXOS
value: linux
- name: WINDOWSOS
value: windows
- name: MACOS
value: macOS
Loading